Critical patches for user verification during onboard and driver creation and loign

This commit is contained in:
Ronald A. Richardson
2024-01-19 19:27:25 +08:00
parent bc0ba3e3fb
commit fd604c99e0
4 changed files with 13 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ export default class AuthVerificationController extends Controller {
* *
* @memberof OnboardVerifyEmailController * @memberof OnboardVerifyEmailController
*/ */
@tracked waitTimeout = 800 * 60 * 2; @tracked waitTimeout = 60 * 100;
/** /**
* Determines if Fleetbase is still awaiting verification after a certain time. * Determines if Fleetbase is still awaiting verification after a certain time.
@@ -190,8 +190,10 @@ export default class AuthVerificationController extends Controller {
modal.startLoading(); modal.startLoading();
const phone = modal.getOption('phone'); const phone = modal.getOption('phone');
return this.fetch.post('onboard/send-verification-sms', { phone }).then(() => { return this.fetch.post('onboard/send-verification-sms', { phone, session: this.hello }).then(() => {
this.notifications.success('Verification code SMS sent!'); this.notifications.success('Verification code SMS sent!');
}).catch((error) => {
this.notifications.serverError(error);
}); });
}, },
}); });
@@ -211,8 +213,10 @@ export default class AuthVerificationController extends Controller {
modal.startLoading(); modal.startLoading();
const email = modal.getOption('email'); const email = modal.getOption('email');
return this.fetch.post('onboard/send-verification-email', { email }).then(() => { return this.fetch.post('onboard/send-verification-email', { email, session: this.hello }).then(() => {
this.notifications.success('Verification code email sent!'); this.notifications.success('Verification code email sent!');
}).catch((error) => {
this.notifications.serverError(error);
}); });
}, },
}); });

View File

@@ -1,6 +1,6 @@
# syntax = docker/dockerfile:1.2 # syntax = docker/dockerfile:1.2
# Base stage # Base stage
FROM php:7.4-fpm-bullseye as base FROM php:8.0-fpm-bullseye as base
# Download and install GEOS PHP bindings # Download and install GEOS PHP bindings
RUN mkdir -p /usr/src/php/ext \ RUN mkdir -p /usr/src/php/ext \
@@ -36,7 +36,9 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set some build ENV variables # Set some build ENV variables
ENV LOG_CHANNEL=stdout ENV LOG_CHANNEL=stdout
ENV CACHE_DRIVER=null ENV CACHE_DRIVER=redis
ENV BROADCAST_DRIVER=socketcluster
ENV QUEUE_CONNECTION=redis
# For development only # For development only
WORKDIR /var/www/html WORKDIR /var/www/html