Jump to content

publish user in admin backend


n1bb
 Share

Recommended Posts

Hello all,

I am trying to set up a user management and started to play around with the login-register module .

I found out that I can handle user similar to pages. So I  did this 

$this->createUserReady($user);
$user->addStatus(Page::statusUnpublished);
$user->save();

The user is created and unpublished, so far so good.

My problem is, when I want to publish the user via admin backend I need to set a password.  The new user should just be published/activated. 

Did I miss something? Is this way working?

I'm thankful for any hints. 

 

Link to comment
Share on other sites

  • n1bb changed the title to publish user in admin backend

Yes the pasword is a required field and it is set during the registration. 

Anyway I rethought the whole thing and came to the conclusion, that I just assign a check box to the users template which indicates if a user is activated or not. This will work for me. 

Thank you for your answer though.

 

 

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...