diff --git a/public/assets/js/admin/auth/login.js b/public/assets/js/admin/auth/login.js index c54903c..6602b7c 100644 --- a/public/assets/js/admin/auth/login.js +++ b/public/assets/js/admin/auth/login.js @@ -204,12 +204,15 @@ $(document).on("click", "#password_reset", function (e) { processData: false, contentType: false, success: function (response) { - if (response.status == 200) { + if (response.status_code == 200) { $("#password_reset").prop("disabled", false); $("#password_reset").text("Login"); - window.location.href = base_url + "/"; + toastr.success(response.message); + setTimeout(function () { + window.location.href = base_url + "/"; + }, 1000); } - if (response.status == 401) { + if (response.status_code == 401) { toastr.error(response.message); form.reset(); $("#password_reset").prop("disabled", false); diff --git a/resources/views/Admin/pages/auth/password_reset.blade.php b/resources/views/Admin/pages/auth/password_reset.blade.php index 35a153f..b03e00b 100644 --- a/resources/views/Admin/pages/auth/password_reset.blade.php +++ b/resources/views/Admin/pages/auth/password_reset.blade.php @@ -1,234 +1,242 @@ @extends('Admin.layouts.app_login') @section('title', 'Cheers To Season - Password Reset') @section('content') - -
+ /* Style for the eye icon when it's not showing the password */
+ .fa-eye-slash {
+ color: #777;
+ /* Adjust color as needed */
+ }
+
+ /* Transition effect for smooth icon change */
+ .fa-eye,
+ .fa-eye-slash {
+ transition: color 0.3s ease;
+ }
+
+
+