- fix auth
This commit is contained in:
@@ -68,7 +68,7 @@ class AuthRoutes {
|
||||
await database.createUser(login, password);
|
||||
await database.createLog(login, 'User registration');
|
||||
stopwatch.stop();
|
||||
final response = Response(201, body: jsonEncode({'message': 'User registered'}), headers: {'Content-Type': 'application/json'});
|
||||
final response = Response(200, body: jsonEncode({'message': 'User registered'}), headers: {'Content-Type': 'application/json'});
|
||||
logRequest(method: 'POST', url: '/reg', status: 201, duration: stopwatch.elapsed, body: body, responseHeaders: response.headers);
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user