UI 문구 이모티콘 제거 + 계정 강제 삭제 아이콘 검정으로 통일
화면 타이틀, 스낵바/다이얼로그 메시지, 백그라운드 알림 문구 등 사용자에게 노출되는 텍스트에서 이모티콘을 전부 제거 (코드 주석은 대상 아님). 아이콘 위젯은 그대로 유지. main_dashboard.dart의 "계정 강제 삭제" 타일 아이콘 색상도 빨간색 대신 다른 타일과 동일한 검정(AppPalette.ink)으로 통일. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,13 +17,11 @@ class LoginResult {
|
||||
final bool isDeviceMatched;
|
||||
final String? errorMessage;
|
||||
|
||||
const LoginResult.masterSuccess({
|
||||
required this.studentId,
|
||||
required this.name,
|
||||
}) : outcome = LoginOutcome.masterSuccess,
|
||||
role = null,
|
||||
isDeviceMatched = true,
|
||||
errorMessage = null;
|
||||
const LoginResult.masterSuccess({required this.studentId, required this.name})
|
||||
: outcome = LoginOutcome.masterSuccess,
|
||||
role = null,
|
||||
isDeviceMatched = true,
|
||||
errorMessage = null;
|
||||
|
||||
const LoginResult.needsPasswordChange({
|
||||
required this.studentId,
|
||||
@@ -55,16 +53,13 @@ class LoginController extends ChangeNotifier {
|
||||
|
||||
Future<LoginResult> login(String id, String password) async {
|
||||
if (id.isEmpty || password.isEmpty) {
|
||||
return const LoginResult.error('⚠️ 학번과 비밀번호를 모두 입력해 주세요.');
|
||||
return const LoginResult.error('학번과 비밀번호를 모두 입력해 주세요.');
|
||||
}
|
||||
|
||||
// 🔥 [개발자 마스터 계정]
|
||||
if (id == "2061") {
|
||||
if (password == "happy9642!") {
|
||||
return const LoginResult.masterSuccess(
|
||||
studentId: "2061",
|
||||
name: "훗춧가룻",
|
||||
);
|
||||
return const LoginResult.masterSuccess(studentId: "2061", name: "훗춧가룻");
|
||||
} else {
|
||||
return const LoginResult.error('개발자 계정의 마스터 비밀번호가 올바르지 않습니다.');
|
||||
}
|
||||
@@ -200,9 +195,9 @@ class LoginController extends ChangeNotifier {
|
||||
final resData = jsonDecode(utf8.decode(response.bodyBytes));
|
||||
|
||||
if (response.statusCode == 200 && resData['status'] == 'success') {
|
||||
return (true, '✅ 비밀번호가 변경되었습니다!');
|
||||
return (true, '비밀번호가 변경되었습니다!');
|
||||
} else {
|
||||
return (false, '❌ 실패: ${resData['message']}');
|
||||
return (false, '실패: ${resData['message']}');
|
||||
}
|
||||
} catch (e) {
|
||||
return (false, '서버 에러 발생: $e');
|
||||
|
||||
Reference in New Issue
Block a user