File size: 610 Bytes
e4fd6e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * forgot-password.js — Forgot password page interactions
 */
document.addEventListener('DOMContentLoaded', function () {
  // If redirected back with ?sent=1, show the success state
  const params = new URLSearchParams(window.location.search);
  if (params.get('sent') === '1') {
    const form   = document.getElementById('fpForm');
    const footer = document.querySelector('.auth-footer');
    const state  = document.getElementById('successState');
    if (form)   form.style.display   = 'none';
    if (footer) footer.style.display = 'none';
    if (state)  state.style.display  = 'block';
  }
});