π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][locker] Update OTP length for App Store review users
AmanRajSinghMourya89defb8cb0a4
diff --git a/mobile/packages/accounts/lib/pages/ott_verification_page.dart b/mobile/packages/accounts/lib/pages/ott_verification_page.dartindex c85e27e18a..1d6bf4a99a 100644--- a/mobile/packages/accounts/lib/pages/ott_verification_page.dart+++ b/mobile/packages/accounts/lib/pages/ott_verification_page.dart@@ -55,6 +55,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {Widget build(BuildContext context) {final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;final colorScheme = getEnteColorScheme(context);+ final bool isAppStoreReview = widget.email == '[email protected]';FloatingActionButtonLocation? fabLocation() {if (isKeypadOpen) {@@ -114,7 +115,8 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {),DynamicFAB(isKeypadOpen: isKeypadOpen,- isFormValid: _pinController.text.length == 6,+ isFormValid:+ _pinController.text.length == (isAppStoreReview ? 8 : 6),buttonText: context.strings.verify,onPressedFunction: onPressed,),@@ -128,6 +130,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {Widget _getBody() {final colorScheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);+ final bool isAppStoreReview = widget.email == '[email protected]';final defaultPinTheme = PinTheme(height: 48,@@ -194,7 +197,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {),const SizedBox(height: 32),Pinput(- length: 6,+ length: isAppStoreReview ? 8 : 6,controller: _pinController,autofocus: true,defaultPinTheme: defaultPinTheme,@@ -203,7 +206,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {showCursor: false,keyboardType: TextInputType.number,onCompleted: (value) {- if (value.length == 6) {+ if (value.length == (isAppStoreReview ? 8 : 6)) {onPressed();}},