Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Import Users

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 221
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: 221
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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: Import Users

Unread post by admin »

Timo,

Thanks how I would have done it too.

Steven
Post Reply