release 4.8.9
This commit is contained in:
@ -132,6 +132,7 @@ class AuthService {
|
||||
return cats;
|
||||
}
|
||||
|
||||
|
||||
// ユーザー登録
|
||||
//
|
||||
/*
|
||||
@ -151,7 +152,7 @@ class AuthService {
|
||||
*/
|
||||
|
||||
static Future<Map<String, dynamic>> register(
|
||||
String email, String password) async {
|
||||
String email, String password, String password2) async {
|
||||
Map<String, dynamic> cats = {};
|
||||
String serverUrl = ConstValues.currentServer();
|
||||
String url = '$serverUrl/api/register/';
|
||||
@ -161,10 +162,10 @@ class AuthService {
|
||||
headers: <String, String>{
|
||||
'Content-Type': 'application/json; charset=UTF-8',
|
||||
},
|
||||
body: jsonEncode(<String, String>{'email': email, 'password': password}),
|
||||
body: jsonEncode(<String, String>{'email': email, 'password': password, 'password2': password2}),
|
||||
);
|
||||
//print(response.body);
|
||||
if (response.statusCode == 200) {
|
||||
if (response.statusCode == 201) {
|
||||
cats = json.decode(utf8.decode(response.bodyBytes));
|
||||
}
|
||||
return cats;
|
||||
|
||||
Reference in New Issue
Block a user