Update `register` method to be compliant with the docs
This commit is contained in:
parent
be71efd3c1
commit
f3329b82ff
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue