forked from baron/baron-sso
일반 사용자 가입 시 External 하드코딩 제거 및 소속 표시 개선
This commit is contained in:
@@ -316,9 +316,7 @@ class _SignupScreenState extends State<SignupScreen> {
|
|||||||
phone: _phoneController.text.trim(),
|
phone: _phoneController.text.trim(),
|
||||||
affiliationType: _affiliationType,
|
affiliationType: _affiliationType,
|
||||||
companyCode: _affiliationType == 'AFFILIATE' ? _companyCode : null,
|
companyCode: _affiliationType == 'AFFILIATE' ? _companyCode : null,
|
||||||
department: _deptController.text.trim().isEmpty
|
department: _deptController.text.trim(),
|
||||||
? (_affiliationType == 'GENERAL' ? 'External' : '')
|
|
||||||
: _deptController.text.trim(),
|
|
||||||
termsAccepted: true,
|
termsAccepted: true,
|
||||||
);
|
);
|
||||||
if (mounted) _showSuccessDialog();
|
if (mounted) _showSuccessDialog();
|
||||||
|
|||||||
@@ -687,7 +687,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
|||||||
profile?.email ??
|
profile?.email ??
|
||||||
profile?.phone ??
|
profile?.phone ??
|
||||||
tr('ui.userfront.profile.user_fallback', fallback: 'User');
|
tr('ui.userfront.profile.user_fallback', fallback: 'User');
|
||||||
final departmentValue = profile?.department ?? '';
|
final departmentValue = profile?.tenant?.name ?? profile?.department ?? '';
|
||||||
final department = departmentValue.isNotEmpty
|
final department = departmentValue.isNotEmpty
|
||||||
? departmentValue
|
? departmentValue
|
||||||
: tr('ui.userfront.profile.department_empty');
|
: tr('ui.userfront.profile.department_empty');
|
||||||
|
|||||||
Reference in New Issue
Block a user