Skip to content

Commit

Permalink
#90 Don't create session for initial user
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 3, 2019
1 parent 2080df7 commit a856d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/elastic4play/controllers/Authenticated.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Authenticated(
* Cookie is signed by Play framework (it cannot be modified by user)
*/
def setSessingUser(result: Result, authContext: AuthContext)(implicit request: RequestHeader): Result =
if (authContext.authMethod != "key")
if (authContext.authMethod != "key" && authContext.authMethod != "init")
result.addingToSession(
sessionUsername authContext.userId,
"expire" (now + maxSessionInactivity.toMillis).toString,
Expand Down

0 comments on commit a856d66

Please sign in to comment.