This content has been marked as final.
Show 4 replies
-
1. Re: Programmatically login after registration
keithnaas Mar 12, 2008 7:22 PM (in response to ziphyre)Please read the docs on Identity. You can call the methods from anywhere, including Java code. For instance, you could call login()
-
2. Re: Programmatically login after registration
junkie Mar 12, 2008 8:00 PM (in response to ziphyre)I have written this class.
public class SeamUtil { public static void login(Client client){ Identity.instance().setUsername(client.getEmail()); Identity.instance().setPassword(client.getPassword()); Identity.instance().login(); } }
I can make this call with an injected client:
SeamUtil.login(client);
-
3. Re: Programmatically login after registration
shane.bryzak Mar 12, 2008 10:59 PM (in response to ziphyre)The seamspace example logs in the user automatically after registration, you could look there for pointers.
-
4. Re: Programmatically login after registration
ziphyre Mar 13, 2008 9:08 AM (in response to ziphyre)thanks for the answers...