Skip to content

Commit

Permalink
remove auto redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Oct 15, 2024
1 parent f76b489 commit de51418
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/controllers/LoginController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ class LoginController @Inject() (
} { (user: User) =>
if (user.disabled)
Future(accountDoesNotExist(email))
else if (user.passwordActivated && request.getQueryString("nopassword").isEmpty)
// 303 is supposed to be the correct code after POST
// Just random knowledge here, since Play `Redirect` is 303 by default
Future.successful(
addingPasswordEmailToSession(user.email.some)(
SeeOther(routes.LoginController.passwordPage.url)
)
)
else
LoginAction.readUserRights(user).map { userRights =>
val loginToken =
Expand Down

0 comments on commit de51418

Please sign in to comment.