fix
This commit is contained in:
@@ -117,11 +117,6 @@ button:hover {
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="messageContainer">
|
||||
<p id="successMessage" class="message success"></p>
|
||||
<p id="errorMessage" class="message error"></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function resetPassword() {
|
||||
const new_password = document.getElementById("new_password").value;
|
||||
@@ -148,9 +143,9 @@ function resetPassword() {
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.code == 200 ) {
|
||||
document.getElementById('successMessage').innerText = JSON.stringify(data);
|
||||
alert(data.msg);
|
||||
} else {
|
||||
document.getElementById('errorMessage').innerText = JSON.stringify(data);
|
||||
alert(data.msg);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user