@progalaxyelabs/ngx-stonescriptphp-client 1.24.4 → 1.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2570,6 +2570,14 @@ class TenantLoginComponent {
|
|
|
2570
2570
|
this.loading = false;
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
|
+
/** Skip to OTP code entry when user already has a code */
|
|
2574
|
+
onSkipToOtpEntry() {
|
|
2575
|
+
this.error = '';
|
|
2576
|
+
this.otpMaskedIdentifier = this.otpIdentifier;
|
|
2577
|
+
this.otpDigits = ['', '', '', '', '', ''];
|
|
2578
|
+
this.otpStep = 'code';
|
|
2579
|
+
setTimeout(() => this.focusOtpInput(0), 50);
|
|
2580
|
+
}
|
|
2573
2581
|
/** Verify the entered OTP code */
|
|
2574
2582
|
async onOtpVerify() {
|
|
2575
2583
|
if (this.loading)
|
|
@@ -2880,6 +2888,14 @@ class TenantLoginComponent {
|
|
|
2880
2888
|
class="btn btn-primary btn-block">
|
|
2881
2889
|
{{ loading ? 'Sending...' : 'Send OTP' }}
|
|
2882
2890
|
</button>
|
|
2891
|
+
@if (error && otpIdentifier.trim()) {
|
|
2892
|
+
<button
|
|
2893
|
+
type="button"
|
|
2894
|
+
class="btn btn-link btn-block otp-already-have"
|
|
2895
|
+
(click)="onSkipToOtpEntry()">
|
|
2896
|
+
I already have an OTP
|
|
2897
|
+
</button>
|
|
2898
|
+
}
|
|
2883
2899
|
</form>
|
|
2884
2900
|
}
|
|
2885
2901
|
|
|
@@ -3166,6 +3182,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
3166
3182
|
class="btn btn-primary btn-block">
|
|
3167
3183
|
{{ loading ? 'Sending...' : 'Send OTP' }}
|
|
3168
3184
|
</button>
|
|
3185
|
+
@if (error && otpIdentifier.trim()) {
|
|
3186
|
+
<button
|
|
3187
|
+
type="button"
|
|
3188
|
+
class="btn btn-link btn-block otp-already-have"
|
|
3189
|
+
(click)="onSkipToOtpEntry()">
|
|
3190
|
+
I already have an OTP
|
|
3191
|
+
</button>
|
|
3192
|
+
}
|
|
3169
3193
|
</form>
|
|
3170
3194
|
}
|
|
3171
3195
|
|