Page 1 of 1

Import Users

Posted: Sun Mar 18, 2018 9:39 am
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?

Re: Import Users

Posted: Sun Mar 18, 2018 9:53 am
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");

Re: Import Users

Posted: Mon Mar 19, 2018 12:09 am
by admin
Timo,

Thanks how I would have done it too.

Steven