success() {
        super.success();
        setUserDetails(this.data.data.token, this.data.data.user);
        window.location.href = this.data.data.user.verified === 1 ? (isAdmin() ? "/admin" : "/user") : "verify-account.html";
    }
/**
     * Redirect the user if they have logged in successfully
     */
Redirect the user if they have logged in successfully
Redirect the user if they have logged in successfully
success() {
        super.success();
        setUserDetails(this.data.data.token, this.data.data.user);
        window.location.href = this.data.data.user.verified === 1 ? (isAdmin() ? "/admin" : "/user") : "verify-account.html";
    }
success ( ) { super . success ( ) ; setUserDetails ( this . data . data . token , this . data . data . user ) ; window . location . href = this . data . data . user . verified === 1 ? ( isAdmin ( ) ? "/admin" : "/user" ) : "verify-account.html" ; }
Redirect the user if they have logged in successfully
Redirect the user if they have logged in successfully