mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-16 17:21:50 +02:00
Updated checks for validate_name() in MemberForm()
The database allows users to deactivate an account with a non-zero value, and create a new user with the same name, reactivating the previous user will allow two users of the same name. This change assures that new user names can not be the same as deactivated users with associated bills (Users that are not deleted from deactivation).
This commit is contained in:
parent
35013eff22
commit
707ba186f3
1 changed files with 0 additions and 1 deletions
|
@ -414,7 +414,6 @@ class MemberForm(FlaskForm):
|
|||
and Person.query.filter(
|
||||
Person.name == field.data,
|
||||
Person.project == self.project,
|
||||
Person.activated,
|
||||
).all()
|
||||
): # NOQA
|
||||
raise ValidationError(_("This project already have this participant"))
|
||||
|
|
Loading…
Reference in a new issue