release 4.8.9

This commit is contained in:
2024-08-05 03:08:12 +09:00
parent 1e0af0b06b
commit 66ade1fe09
30 changed files with 1765 additions and 17646 deletions

View File

@ -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;