From d04d930bd3de31a718459440361ab50dee020e6e Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Thu, 28 Apr 2022 20:12:16 +0200 Subject: [PATCH] Add an 'invalid password' error --- usersystem.capnp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usersystem.capnp b/usersystem.capnp index 60c2a71..ca9ff69 100644 --- a/usersystem.capnp +++ b/usersystem.capnp @@ -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; }