Skip to main content

Forgot Password

You are reading an outdated document

Get the latest developer guides on Fynd Partners Help

The Forgot Password allows a user to send a set password link to a registered email.

QG21


The Forgot password is configured from the platform according to the need.

Example:

The below example will render a Forgot password.

               <div>
<div
class="forgot-password-wrapper"
v-if="!isSendResetPasswordSuccess"
>
<div class="forgot-password-content-title">
Forgot Password?
</div>
<div class="forgot-password-alert alert-success">
<span class="alert-message"
>Enter your registered email address</span
>
<div
@click="
accountData.openLogin({ redirect: false })
"
class="alert-link"
>
Cancel Reset
</div>
</div>
<div
:class="{
'forgot-password-input-group': true,
'error-input': isInValidEmail
}"
>
<label
class="forgot-password-input-title"
for="email"
>Email Address</label
><input
type="text"
name="email"
required=""
v-model="resetEmail"
@input="validateEmail"
/>
<span class="error-text" v-if="isInValidEmail"
>Please enter valid email address</span
>
</div>
<div
class="forgot-password-alert alert-error"
v-if="isEmailNotExist"
>
<span class="alert-message">{{
emailErrorMsg
}}</span>
</div>
<button
class="forgot-password-submit-btn secondary-btn"
:disabled="!isShowResetButton"
@click="forgotPasswordSubmitBtnClick(accountData)"
type="submit"
>
Send Password Reset Link
</button>
</div>
<div class="reset-success-msg" v-else>
<p>
Reset Link has been sent to your primary email
address.
</p>
</div>
</div>