Skip to content

Commit

Permalink
signup: Log rejected signup trial
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 24, 2017
1 parent 8c3db37 commit 92b3c2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/UserApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public static Result newUser() {

if (!isAllowedEmailDomains(newUserForm.get().email)) {
flash(Constants.INFO, "user.unacceptable.email.domain");
play.Logger.warn("Signup rejected: " + newUserForm.get().name + " with " + newUserForm.get().email);
return badRequest(signup.render("title.signup", newUserForm));
}

Expand Down Expand Up @@ -417,8 +418,10 @@ public static User createLocalUserWithOAuth(UserCredential userCredential){
forceOAuthLogout();
return User.anonymous;
}

if (!isAllowedEmailDomains(userCredential.email)) {
flash(Constants.INFO, "user.unacceptable.email.domain");
play.Logger.warn("Signup rejected: " + userCredential.name + " with " + userCredential.email);
userCredential.delete();
forceOAuthLogout();
return User.anonymous;
Expand Down

0 comments on commit 92b3c2c

Please sign in to comment.