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="input-group-container">
|
||||
<div class="form-floating">
|
||||
<input
|
||||
class="input-email"
|
||||
id="inputCode"
|
||||
type="password"
|
||||
:placeholder="'Type in your password'"
|
||||
v-model="password"
|
||||
/>
|
||||
<input class="input-email" id="inputCode" type="password" :placeholder="'Type in your password'"
|
||||
v-model="password" />
|
||||
<label for="inputCode">{{ $t('Password') }}</label>
|
||||
</div>
|
||||
<button type="submit" class="btn-start">{{ $t('SIGN IN') }}</button>
|
||||
@ -50,7 +45,7 @@ export default {
|
||||
|
||||
components: {},
|
||||
|
||||
created() {},
|
||||
created() { },
|
||||
mounted() {
|
||||
if (this.mnx_IsKeepUserSignedIn() && this.mnx_isUserAuthenticated()) {
|
||||
this.mnx_navAfterSignedin()
|
||||
@ -89,7 +84,7 @@ export default {
|
||||
},
|
||||
|
||||
forgetPassword() {
|
||||
UserAuthApi.resetPasswordThroughEmail(this.email)
|
||||
UserAuthApi.resetPasswordThroughEmail(this.email, window.location.host)
|
||||
.then((response) => {
|
||||
let signinAction = response.data.action
|
||||
switch (signinAction) {
|
||||
@ -117,6 +112,7 @@ export default {
|
||||
color: #916ad4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.btn-forget-password {
|
||||
@extend .btn;
|
||||
// @extend .ms-1;
|
||||
|
||||
@ -14,11 +14,12 @@ class UserAuthApi {
|
||||
return request
|
||||
}
|
||||
|
||||
static resetPasswordThroughEmail(email) {
|
||||
static resetPasswordThroughEmail(email, host) {
|
||||
const request = backendAxios.post(
|
||||
'/api/user/signin/reset-password-through-email',
|
||||
{
|
||||
email: email
|
||||
email: email,
|
||||
host: host
|
||||
},
|
||||
{}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user