Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Import Users

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Import Users

Unread post by Timo »

Hi all, I need to import about 400 users to the zzzzsys_user table. How do I set a default password (e.g. welcome) for all users after the import? Is there a sql or php function to do that?
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Import Users

Unread post by Timo »

I think I found a way to do it

Code: Select all

$pw	= md5('welcome');
nuRunQuery("UPDATE zzzzsys_user SET sus_login_password = '$pw' WHERE sus_login_password is null");
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Import Users

Unread post by admin »

Timo,

Thanks how I would have done it too.

Steven
Post Reply