Permalink
Browse files

RandomID deleted

  • Loading branch information...
1 parent e687de0 commit b9901640c00811dc4bbd4981622f4b6bfe7bf6ca Sascha Hanke committed Jun 27, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 app/controllers/Start.java
@@ -68,26 +68,25 @@ public static void oauthCallbackstart(String oauth_token, String oauth_verifier)
user.save();
}
user = User.updateMisoUserDetails(user);
- String randomID = Codec.UUID();
+
if (!session.get("requestTokenSecret").equals(user.requestTokenSecret)) {
redirect("/");
}
- render("Start/form.html", randomID, user);
+ render("Start/form.html", user);
}
- public static void setPasswordEmail(Long userID, @Required(message = "E-Mail is required") String email, @Required(message = "A password is required") String password, String randomID) {
+ public static void setPasswordEmail(Long userID, @Required(message = "E-Mail is required") String email, @Required(message = "A password is required") String password) {
User user = User.findById(userID);
if (!session.get("requestTokenSecret").equals(user.requestTokenSecret)) {
redirect("/");
}
if (validation.hasErrors()) {
- render("Start/form.html", user, randomID);
+ render("Start/form.html", user);
}
flash.success("Thanks for registering %s, now login with e-mail and password", user.username);
user.password = password;
user.email = email;
user.save();
- Cache.delete(randomID);
redirect("/login");
}

0 comments on commit b990164

Please sign in to comment.