1
0
forked from baron/baron-sso

사용자 테넌트 소속 데이터 정리

This commit is contained in:
2026-05-13 18:23:39 +09:00
parent 8a6e41d74c
commit e36a973053
26 changed files with 348 additions and 387 deletions

View File

@@ -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,
}),

View File

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