This content has been marked as final.
Show 4 replies
-
1. Re: Programmatically login after registration
Keith Naas Mar 12, 2008 7:22 PM (in response to Ziphyre Marco)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
Thomas Gerhards Mar 12, 2008 8:00 PM (in response to Ziphyre Marco)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 Marco)The seamspace example logs in the user automatically after registration, you could look there for pointers.
-
4. Re: Programmatically login after registration
Ziphyre Marco Mar 13, 2008 9:08 AM (in response to Ziphyre Marco)thanks for the answers...