refactor: chicken module for other role's
feat: steward Role chore: add some rive file and library
This commit is contained in:
@@ -105,19 +105,6 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
return isCaptchaValid && isFormValid;
|
||||
}
|
||||
|
||||
LoginRequestModel _buildLoginRequest() {
|
||||
final phone = usernameController.value.text;
|
||||
final pass = passwordController.value.text;
|
||||
final code = captchaController.textController.value.text;
|
||||
final key = captchaController.captchaKey.value;
|
||||
|
||||
return LoginRequestModel.createWithCaptcha(
|
||||
username: phone,
|
||||
password: pass,
|
||||
captchaCode: code,
|
||||
captchaKey: key!,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> submitLoginForm() async {
|
||||
if (!_isFormValid()) return;
|
||||
@@ -144,7 +131,7 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
);
|
||||
}
|
||||
|
||||
Get.offAndToNamed(ChickenRoutes.init);
|
||||
Get.offAndToNamed(ChickenRoutes.initSteward);
|
||||
},
|
||||
onError: (error, stackTrace) {
|
||||
if (error is DioException) {
|
||||
|
||||
Reference in New Issue
Block a user