Some progress on auth logic and cleanup of User class
This commit is contained in:
parent
58d4ab2f75
commit
26ab7c9dd9
12 changed files with 370 additions and 110 deletions
|
|
@ -31,7 +31,7 @@ public class RegisterAction extends ZalleryAction{
|
|||
msgs.add(MessageType.ERROR, "Please provide a valid email!");
|
||||
return;
|
||||
}
|
||||
if( User.emailExists(request.getParameter("email"), db) ){
|
||||
if(User.load(db, request.getParameter("email")) != null){
|
||||
msgs.add(MessageType.ERROR, "An account with that email already exists!");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue