Created
September 10, 2013 23:58
-
-
Save lanceon/6517487 to your computer and use it in GitHub Desktop.
Autologin example from https://groups.google.com/d/msg/liftweb/dXFqR4er9Fk/3PNKl_NtrbcJ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Props.devMode) autologinFunc = Full(autoLogin) | |
private def autoLogin() { | |
val u = User.findUserByUserName("dummy@altus-insight.de") | |
if (u.isDefined) logUserIn(u.get) | |
else debug("could not find dummy user for auto login. please create user ...@altus-insight.de") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment