Jump to content

removing user


Frank Vèssia
 Share

Recommended Posts

Have you tried $users->delete($user)? Where $user is actual $user object (not username). So probably something like this:

$u = $users->get('username');
$users->delete($u);

Documentation for $users is missing and probably will be until Ryan finishes his work building the new user management.

Link to comment
Share on other sites

  • 5 years later...

how is this done when the user you want to delete is the user logged in? It seems to error and I cann't get my head around how I might change them to guest aftwards etc?

Any help would be ace

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...