Add an 'invalid password' error

This commit is contained in:
Nadja Reitzenstein 2022-04-28 20:12:16 +02:00
parent c00a274a16
commit d04d930bd3

View File

@ -36,9 +36,13 @@ struct UserSystem
enum AddUserError {
alreadyExists @0;
# An user with that username already exists
usernameInvalid @1;
# The provided username is unusable, e.g. contains invalid characters,
# is too long or too short.
passwordInvalid @2;
# The provided password is unusable, e.g. it's of zero length
}
error @0 :AddUserError;
}