forked from baron/baron-sso
사용자 테넌트 소속 데이터 정리
This commit is contained in:
@@ -985,12 +985,12 @@ class AuthProxyService {
|
||||
|
||||
static Future<Map<String, dynamic>> checkLoginIDAvailability(
|
||||
String loginId, {
|
||||
String? companyCode,
|
||||
String? tenantSlug,
|
||||
}) async {
|
||||
final url = Uri.parse('$_baseUrl/api/v1/auth/signup/check-login-id');
|
||||
final bodyData = {'loginId': loginId};
|
||||
if (companyCode != null && companyCode.isNotEmpty) {
|
||||
bodyData['companyCode'] = companyCode;
|
||||
if (tenantSlug != null && tenantSlug.isNotEmpty) {
|
||||
bodyData['tenantSlug'] = tenantSlug;
|
||||
}
|
||||
final response = await http.post(
|
||||
url,
|
||||
@@ -1074,7 +1074,7 @@ class AuthProxyService {
|
||||
required String name,
|
||||
required String phone,
|
||||
required String affiliationType,
|
||||
String? companyCode,
|
||||
String? tenantSlug,
|
||||
required String department,
|
||||
required bool termsAccepted,
|
||||
}) async {
|
||||
@@ -1089,7 +1089,7 @@ class AuthProxyService {
|
||||
'name': name,
|
||||
'phone': phone,
|
||||
'affiliationType': affiliationType,
|
||||
'companyCode': companyCode,
|
||||
'tenantSlug': tenantSlug,
|
||||
'department': department,
|
||||
'termsAccepted': termsAccepted,
|
||||
}),
|
||||
|
||||
@@ -333,7 +333,7 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
name: _nameController.text.trim(),
|
||||
phone: _phoneController.text.trim(),
|
||||
affiliationType: _affiliationType,
|
||||
companyCode: _affiliationType == 'AFFILIATE' ? _companyCode : null,
|
||||
tenantSlug: _affiliationType == 'AFFILIATE' ? _companyCode : null,
|
||||
department: _deptController.text.trim(),
|
||||
termsAccepted: true,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user