Home
About
Services
Offers
Blogs
Sunnah Dates
Contact
Home
About
Services
Offers
Blogs
Sunnah Dates
Contact
×
Login
Register
{ // Check if response is ok if (!r.ok) { const errorText = await r.text(); console.error('Server error:', r.status, errorText); throw new Error('Server error: ' + r.status); } // Try to parse JSON const text = await r.text(); try { return JSON.parse(text); } catch (e) { console.error('Invalid JSON response:', text); throw new Error('Invalid response from server'); } }) .then(data => { loading = false; if (data && data.success) { message = data.message || 'Success!'; messageType = 'success'; setTimeout(() => { window.location.href = data.redirect || '/index.php?route=profile'; }, 1000); } else { message = (data && data.message) ? data.message : 'An error occurred. Please try again.'; messageType = 'error'; } }) .catch(error => { loading = false; message = 'An error occurred. Please try again.'; messageType = 'error'; console.error('Login error:', error); }) ">
Password must be at least 6 characters
Blogs
Articles and updates from Dar Ul Shifa
May 1, 2026
The Art and Science of Hijama:
A Holistic Path to Restorative Health
Read more