34 lines
818 B
Java
34 lines
818 B
Java
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
*/
|
|
package testForms;
|
|
|
|
import jakarta.servlet.http.HttpServletRequest;
|
|
import javabeans.User;
|
|
|
|
/**
|
|
*
|
|
* @author famille Thevenot
|
|
*/
|
|
public class AuthentifForm {
|
|
private String resultat;
|
|
|
|
public String getResultat() {
|
|
return resultat;
|
|
}
|
|
|
|
public void setResultat(String resultat) {
|
|
this.resultat = resultat;
|
|
}
|
|
|
|
public boolean controlerAdmin(HttpServletRequest request)
|
|
{
|
|
User admin = new User("admin", "minda");
|
|
User userSaisi = new User(request.getParameter("ztPseudo"),request.getParameter("ztMDP"));
|
|
return admin.equals(userSaisi);
|
|
}
|
|
|
|
|
|
}
|