Update `register` method to be compliant with the docs

This commit is contained in:
krawieck 2020-08-14 16:43:42 +02:00
parent be71efd3c1
commit f3329b82ff
1 changed files with 11 additions and 1 deletions

View File

@ -30,8 +30,18 @@ extension UserEndpoint on V1 {
Future<String> register({
@required String username,
String email,
String password,
@required String password,
@required String passwordVerify,
@required bool admin,
String captchaUuid,
String captchaAnswer,
}) {
assert(username != null);
assert(password != null);
assert(passwordVerify != null);
assert(admin != null);
assert(((captchaUuid != null) ^ (captchaAnswer != null)));
throw UnimplementedError();
}