src/static/js/admin-registration.js
// Set a user's approved status
Set a user's approved status
Set a user ' s approved status
function approveUser(userID, approved, reason) {
  $.ajax({
    url: "/api/approveRegistration",
    data: {
      userID,
      approved,
      reason,
    },
    success: () => {
      hideError();
      updateNotifications();
      populateRegistration();
    },
    error: () => {
      showError("Failed to approve/deny user account");
    },
  });
}
function approveUser ( userID , approved , reason ) { $ . ajax ( { url : "/api/approveRegistration" , data : { userID , approved , reason , } , success : ( ) => { hideError ( ) ; updateNotifications ( ) ; populateRegistration ( ) ; } , error : ( ) => { showError ( "Failed to approve/deny user account" ) ; } , } ) ; }
Set a user's approved status
Set a user ' s approved status