Apex Class Forgot Password

You might also like

You are on page 1of 1

public class forgotpass

{
public String Name{set;get;}
public String mail{set;get;}
public String mobile{set;get;}
public String newpass{set;get;}
public PageReference A1()
{
Project__c updt=null;
updt=[select Passwords__c from Project__c where mail__c=:mail and
mobile__c=:mobile];
updt.Passwords__c=newpass;
//catch(Exception e){}
Update updt;
//delete updt;
PageReference pg=new PageReference('/apex/logins');
pg.setRedirect(true);
return pg;
}
}

You might also like