mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
Critical patches for user verification during onboard and driver creation and loign
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Submodule packages/core-api updated: 7faca511a7...00c489b6cc
Submodule packages/fleetops updated: 687c82780e...a36f876f95
Reference in New Issue
Block a user