forgot password changes

development_sikander
haroon amjad 2 years ago
parent 771914326f
commit 43e1e4df6b

@ -88,7 +88,7 @@
"atLeastOneNumeric": "رقم واحد على الأقل", "atLeastOneNumeric": "رقم واحد على الأقل",
"minimum8Characters": "8 أحرف على الأقل", "minimum8Characters": "8 أحرف على الأقل",
"doNotAddRepeatingLetters": "لا تقم بإضافة أحرف متكررة", "doNotAddRepeatingLetters": "لا تقم بإضافة أحرف متكررة",
"itShouldContainSpecialCharacter": "يجب أن يحتوي على طابع خاص", "itShouldContainSpecialCharacter": "يجب لا يحتوي على أحرف خاصة",
"confirmPasswordMustMatch": "يجب أن يتطابق تأكيد كلمة المرور", "confirmPasswordMustMatch": "يجب أن يتطابق تأكيد كلمة المرور",
"sms": "رسالة قصيرة", "sms": "رسالة قصيرة",
"fingerPrint": "بصمة", "fingerPrint": "بصمة",

@ -85,7 +85,7 @@
"atLeastOneNumeric": "At least one numeric", "atLeastOneNumeric": "At least one numeric",
"minimum8Characters": "Minimum 8 characters", "minimum8Characters": "Minimum 8 characters",
"doNotAddRepeatingLetters": "Do not add repeating letters", "doNotAddRepeatingLetters": "Do not add repeating letters",
"itShouldContainSpecialCharacter": "It should contain special character", "itShouldContainSpecialCharacter": "It should not contain special characters",
"confirmPasswordMustMatch": "Confirm password must match", "confirmPasswordMustMatch": "Confirm password must match",
"sms": "SMS", "sms": "SMS",
"fingerPrint": "Fingerprint", "fingerPrint": "Fingerprint",

@ -104,7 +104,7 @@ class CodegenLoader extends AssetLoader {
"atLeastOneNumeric": "رقم واحد على الأقل", "atLeastOneNumeric": "رقم واحد على الأقل",
"minimum8Characters": "8 أحرف على الأقل", "minimum8Characters": "8 أحرف على الأقل",
"doNotAddRepeatingLetters": "لا تقم بإضافة أحرف متكررة", "doNotAddRepeatingLetters": "لا تقم بإضافة أحرف متكررة",
"itShouldContainSpecialCharacter": "يجب أن يحتوي على طابع خاص", "itShouldContainSpecialCharacter": "يجب لا يحتوي على أحرف خاصة",
"confirmPasswordMustMatch": "يجب أن يتطابق تأكيد كلمة المرور", "confirmPasswordMustMatch": "يجب أن يتطابق تأكيد كلمة المرور",
"sms": "رسالة قصيرة", "sms": "رسالة قصيرة",
"fingerPrint": "بصمة", "fingerPrint": "بصمة",
@ -639,7 +639,7 @@ class CodegenLoader extends AssetLoader {
"atLeastOneNumeric": "At least one numeric", "atLeastOneNumeric": "At least one numeric",
"minimum8Characters": "Minimum 8 characters", "minimum8Characters": "Minimum 8 characters",
"doNotAddRepeatingLetters": "Do not add repeating letters", "doNotAddRepeatingLetters": "Do not add repeating letters",
"itShouldContainSpecialCharacter": "It should contain special character", "itShouldContainSpecialCharacter": "It should not contain special character",
"confirmPasswordMustMatch": "Confirm password must match", "confirmPasswordMustMatch": "Confirm password must match",
"sms": "SMS", "sms": "SMS",
"fingerPrint": "Fingerprint", "fingerPrint": "Fingerprint",

@ -240,7 +240,7 @@ class _LoginScreenState extends State<LoginScreen> {
Utils.hideLoading(context); Utils.hideLoading(context);
await Navigator.pushNamed(context, AppRoutes.newPassword, arguments: username.text); await Navigator.pushNamed(context, AppRoutes.newPassword, arguments: username.text);
Navigator.pop(context); Navigator.pop(context);
Navigator.pop(context); // Navigator.pop(context);
} catch (ex) { } catch (ex) {
print(ex); print(ex);
_pinPutController.clear(); _pinPutController.clear();
@ -331,10 +331,12 @@ class _LoginScreenState extends State<LoginScreen> {
9.height, 9.height,
Align( Align(
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
child: LocaleKeys.forgotPassword.tr().toText12(isUnderLine: true, color: MyColors.textMixColor).onPress(() { child: LocaleKeys.forgotPassword.tr().toText12(isUnderLine: true, color: MyColors.textMixColor).onPress(
Navigator.pushNamed(context, AppRoutes.forgotPassword); () {
// performForgotPassword(); // Navigator.pushNamed(context, AppRoutes.forgotPassword);
}), performForgotPassword();
},
),
), ),
20.height, 20.height,
// DefaultButton( // DefaultButton(

@ -102,8 +102,8 @@ class _NewPasswordScreenState extends State<NewPasswordScreen> {
passwordConstraintsUI(LocaleKeys.minimum8Characters.tr(), password.text.length >= 8), passwordConstraintsUI(LocaleKeys.minimum8Characters.tr(), password.text.length >= 8),
8.height, 8.height,
passwordConstraintsUI(LocaleKeys.doNotAddRepeatingLetters.tr(), checkRepeatedChars(password.text)), passwordConstraintsUI(LocaleKeys.doNotAddRepeatingLetters.tr(), checkRepeatedChars(password.text)),
// 8.height, 8.height,
// passwordConstraintsUI(LocaleKeys.itShouldContainSpecialCharacter.tr(), checkRegEx(r'[!@#$%^&*(),.?":{}|<>]')), passwordConstraintsUI(LocaleKeys.itShouldContainSpecialCharacter.tr(), checkRegEx(r'^[a-zA-Z0-9]+$')),
8.height, 8.height,
passwordConstraintsUI(LocaleKeys.confirmPasswordMustMatch.tr(), password.text.isNotEmpty && password.text == confirmPassword.text), passwordConstraintsUI(LocaleKeys.confirmPasswordMustMatch.tr(), password.text.isNotEmpty && password.text == confirmPassword.text),
], ],
@ -114,8 +114,8 @@ class _NewPasswordScreenState extends State<NewPasswordScreen> {
? null ? null
: () async { : () async {
setNewPassword(); setNewPassword();
}) },
.insideContainer ).insideContainer
], ],
), ),
); );

Loading…
Cancel
Save