Added user rank changes to admin page.

This commit is contained in:
rainbownapkin 2024-11-17 17:37:07 -05:00
parent 064109556c
commit 8a4a21cff0
13 changed files with 276 additions and 30 deletions

View file

@ -25,6 +25,13 @@ class canopyUXUtils{
constructor(){
}
async displayResponseError(body){
const errors = body.errors;
errors.forEach((err)=>{
window.alert(`ERROR: ${err.msg} \nTYPE: ${err.type} \nDATE: ${err.date}`);
});
}
static clickDragger = class{
constructor(handle, element, leftHandle = true){
@ -117,13 +124,7 @@ class canopyAjaxUtils{
constructor(){
}
//Profile
async displayResponseError(body){
const err = body.msg;
window.alert(`ERROR:\n${err}`);
}
}
async register(user, pass, passConfirm, email){
var response = await fetch(`/api/account/register`,{