forked from baron/baron-sso
code check 오류 수정
This commit is contained in:
@@ -238,8 +238,8 @@ class _ConsentScreenState extends State<ConsentScreen> {
|
||||
final clientName = (clientRawName != null && clientRawName.isNotEmpty)
|
||||
? clientRawName
|
||||
: (clientId != '-'
|
||||
? clientId
|
||||
: tr('msg.userfront.consent.client_unknown'));
|
||||
? clientId
|
||||
: tr('msg.userfront.consent.client_unknown'));
|
||||
final clientLogo = _consentInfo?['client']?['logo_uri'];
|
||||
final requestedScopes =
|
||||
(_consentInfo?['requested_scope'] as List<dynamic>?)?.cast<String>() ??
|
||||
|
||||
@@ -1494,8 +1494,7 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
labelText: tr(
|
||||
'ui.userfront.signup.profile.company',
|
||||
),
|
||||
border:
|
||||
const OutlineInputBorder(),
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
items: [
|
||||
DropdownMenuItem(
|
||||
@@ -1557,7 +1556,9 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
_buildProfileFieldGroup(
|
||||
title: _affiliationType == 'AFFILIATE'
|
||||
? tr('ui.userfront.signup.profile.department')
|
||||
: tr('ui.userfront.signup.profile.department_optional'),
|
||||
: tr(
|
||||
'ui.userfront.signup.profile.department_optional',
|
||||
),
|
||||
description: _affiliationType == 'AFFILIATE'
|
||||
? '가족사 사용자는 부서명을 입력해주세요.'
|
||||
: '선택 입력 항목입니다.',
|
||||
@@ -1677,10 +1678,7 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
],
|
||||
),
|
||||
),
|
||||
if (trailing != null) ...[
|
||||
const SizedBox(width: 12),
|
||||
trailing,
|
||||
],
|
||||
if (trailing != null) ...[const SizedBox(width: 12), trailing],
|
||||
],
|
||||
),
|
||||
SizedBox(height: isDesktop ? 18 : 14),
|
||||
@@ -1793,13 +1791,22 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
hasTypeCount,
|
||||
),
|
||||
if (requiresUpper)
|
||||
_cryptoCheck(tr('msg.userfront.signup.password.rule.uppercase'), hasUpper),
|
||||
_cryptoCheck(
|
||||
tr('msg.userfront.signup.password.rule.uppercase'),
|
||||
hasUpper,
|
||||
),
|
||||
if (requiresLower)
|
||||
_cryptoCheck(tr('msg.userfront.signup.password.rule.lowercase'), hasLower),
|
||||
_cryptoCheck(
|
||||
tr('msg.userfront.signup.password.rule.lowercase'),
|
||||
hasLower,
|
||||
),
|
||||
if (requiresNumber)
|
||||
_cryptoCheck(tr('msg.userfront.signup.password.rule.number'), hasDigit),
|
||||
if (requiresSymbol)
|
||||
_cryptoCheck(tr('msg.userfront.signup.password.rule.symbol'), hasSpecial),
|
||||
_cryptoCheck(
|
||||
tr('msg.userfront.signup.password.rule.symbol'),
|
||||
hasSpecial,
|
||||
),
|
||||
];
|
||||
|
||||
return LayoutBuilder(
|
||||
@@ -1861,14 +1868,15 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
obscureText: _isPasswordObscured,
|
||||
onChanged: (_) => setState(() {}),
|
||||
decoration: InputDecoration(
|
||||
labelText: tr('ui.userfront.signup.password.label'),
|
||||
labelText: tr(
|
||||
'ui.userfront.signup.password.label',
|
||||
),
|
||||
border: const OutlineInputBorder(),
|
||||
errorText: _passwordError,
|
||||
suffixIcon: IconButton(
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
_isPasswordObscured =
|
||||
!_isPasswordObscured;
|
||||
_isPasswordObscured = !_isPasswordObscured;
|
||||
});
|
||||
},
|
||||
icon: Icon(
|
||||
@@ -1897,8 +1905,8 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
obscureText: _isConfirmPasswordObscured,
|
||||
onChanged: (val) {
|
||||
setState(() {
|
||||
_confirmPasswordError = (val !=
|
||||
_passwordController.text)
|
||||
_confirmPasswordError =
|
||||
(val != _passwordController.text)
|
||||
? tr('msg.userfront.signup.password.mismatch')
|
||||
: null;
|
||||
});
|
||||
@@ -2032,11 +2040,7 @@ class _SignupScreenState extends State<SignupScreen> {
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(isDesktop ? 16 : 14),
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 10,
|
||||
children: checks,
|
||||
),
|
||||
child: Wrap(spacing: 12, runSpacing: 10, children: checks),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user