You need to sign in to do that
Don't have an account?
ray allen
I am trying to reset a logged in user password
I need finalizing this apex class to reset a password for the user and log the current user out of salesforce. Here is my code any ideas I get this error message.
I get an error unexpected token: ',' in line 3 where system.resetPassword(user,true); id located
public class resetyourpassword { String user=userinfo.getuserId(); system.resetPassword(user,true); PageReference demoPage = new pagereferenct('/secur/logout.jsp'); demoPage.setRedirect(true); }
I get an error unexpected token: ',' in line 3 where system.resetPassword(user,true); id located
Thx
All Answers
I defined the method with no return value, but I'm not sure if you need to return a value or not.
Welcome to the Developer's Forum, Since you are new, here are some guidelines:
As a common practice, if your question is answered, please choose 1 best answer.
But you can give every answer a thumb up if that answer is helpful to you.
This will help keep the forum clean and help future users determine what answers are useful and what answer was the best in resolving the user's issue.
Thanks
Try explicitly passing a boolean in and using ID vs String.
Thx
Be sure to give thumbs up for any answer that helped you and mark 1 best answer.
Thx
Thx
Thx