Enable multi-lan for system notification when resetting password in frontend
This commit is contained in:
parent
c5b599a5e7
commit
bf613fdd4c
@ -5,13 +5,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group-container">
|
<div class="input-group-container">
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input
|
<input class="input-email" id="inputCode" type="password" :placeholder="'Type in your password'"
|
||||||
class="input-email"
|
v-model="password" />
|
||||||
id="inputCode"
|
|
||||||
type="password"
|
|
||||||
:placeholder="'Type in your password'"
|
|
||||||
v-model="password"
|
|
||||||
/>
|
|
||||||
<label for="inputCode">{{ $t('Password') }}</label>
|
<label for="inputCode">{{ $t('Password') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn-start">{{ $t('SIGN IN') }}</button>
|
<button type="submit" class="btn-start">{{ $t('SIGN IN') }}</button>
|
||||||
@ -89,7 +84,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
forgetPassword() {
|
forgetPassword() {
|
||||||
UserAuthApi.resetPasswordThroughEmail(this.email)
|
UserAuthApi.resetPasswordThroughEmail(this.email, window.location.host)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
let signinAction = response.data.action
|
let signinAction = response.data.action
|
||||||
switch (signinAction) {
|
switch (signinAction) {
|
||||||
@ -117,6 +112,7 @@ export default {
|
|||||||
color: #916ad4;
|
color: #916ad4;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-forget-password {
|
.btn-forget-password {
|
||||||
@extend .btn;
|
@extend .btn;
|
||||||
// @extend .ms-1;
|
// @extend .ms-1;
|
||||||
|
|||||||
@ -14,11 +14,12 @@ class UserAuthApi {
|
|||||||
return request
|
return request
|
||||||
}
|
}
|
||||||
|
|
||||||
static resetPasswordThroughEmail(email) {
|
static resetPasswordThroughEmail(email, host) {
|
||||||
const request = backendAxios.post(
|
const request = backendAxios.post(
|
||||||
'/api/user/signin/reset-password-through-email',
|
'/api/user/signin/reset-password-through-email',
|
||||||
{
|
{
|
||||||
email: email
|
email: email,
|
||||||
|
host: host
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user