Fail to add new user

Razvan Bunea shared this problem 9 years ago
Solved

When I try to add a new user after validating the form I got the message:

FAIL: There are delayed insert actions before operation as cascade level 0.; nested exception is java.lang.IllegalStateException: There are delayed insert actions before operation as cascade level 0.


The user gets nevertheless the mail to validate his mail but when asked to login and try the right credentials got a Warrning: User <mail> not found or wrong password.


As a Java developper I understand that the user couldn't be insert in the database, so why sending the mail nervertheless even if you throw an Exception?


I made some other tests:

I try reset password for that account but did not received it the mail so I tried to reset the password to an random email adress (sure it does not exists) and nevertheless got the

Success message: A new password have been sent to your email.

I think you should verify if the email exists in your database before saying that.

Replies (1)

photo
1

Problem fixed. I just tried again and worked.

Thanks.

Leave a Comment
 
Attach a file