Jump to content

Create users accounts


buothz
 Share

Recommended Posts

I need to create an admin area where the admin processwire can enter data (create several new account username and password) in the mysql database.

Once he has created access data, it can associate the access to different pages that are created by the admin panel

for example

admin create

user: creative

pass: madolo

user log as

user: creative

pass: madolo

and can display www.sitename.com/page1 that other users can't show...

admin create

user: pomodoro

pass: rosso

user log as

user: pomodoro

pass: rosso

and can display www.sitename.com/page77 that other users can't show...

and so on ...

As you suggested me to do?

Link to comment
Share on other sites

So, to put it short you're trying to create new admin area where admins can create new users? Why can't you just give them access to PW users page in admin, or am I missing something here? If you'd provide a bit more background info I might be able to provide more helpful response.. :)

Anyway, if you wish to create users with your own code, you should first check out examples on $user page. At the bottom of that page you can find a simple example for creating new user. And for allowing users access to certain pages they're not usually allowed to view, this post by Soma could be helpful -- what he's doing there is giving users edit access to pages, but that code could quite easily be converted to only allow view access.

  • Like 1
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

×
×
  • Create New...