fix : obscure password in auth

This commit is contained in:
2025-06-02 10:30:19 +03:30
parent 288915b354
commit faa8f310db
4 changed files with 21 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ class AuthLogic extends GetxController {
Rx<GlobalKey<FormState>> formKeyOtp = GlobalKey<FormState>().obs;
Rx<GlobalKey<FormState>> formKeySentOtp = GlobalKey<FormState>().obs;
Rx<TextEditingController> phoneNumberController = TextEditingController().obs;
Rx<TextEditingController> usernameController = TextEditingController().obs;
Rx<TextEditingController> passwordController = TextEditingController().obs;
Rx<TextEditingController> phoneOtpNumberController =
TextEditingController().obs;
@@ -95,7 +95,7 @@ class AuthLogic extends GetxController {
}
LoginRequestModel _buildLoginRequest() {
final phone = phoneNumberController.value.text;
final phone = usernameController.value.text;
final pass = passwordController.value.text;
final code = captchaController.textController.value.text;
final key = captchaController.captchaKey.value;

View File

@@ -144,7 +144,7 @@ class AuthPage extends GetView<AuthLogic> {
minWidth: 40,
),
),
controller.phoneNumberController,
controller.usernameController,
),
const SizedBox(height: 26),
ObxValue(

View File

@@ -1,6 +1,6 @@
name: rasadyar_auth
description: "A new Flutter project."
version: 0.0.1
version: 1.0.2
publish_to: 'none'