Users Registration

Having problems with the panel? Have questions? Post here!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Users Registration

Post by Shadowless »

hello...
how enable users registation on panel? i did not found nothing in CP and no posts about it, there is only users manualy adding option in CP
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

There's no option for user registration, it's all manual. You can use the API to create your own registration system though if you'd like.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

hello again.. i tried to make my simple PHP registraction form, but got lil problem... here is PHP -> SQL code but as well im not good in SQL please help me and correct it...

Code: Select all

            $pass = password_hash($Password, PASSWORD_DEFAULT);
            $salt = md5($Password);
            $query = "insert into users (user,email,enabled,salt,pwhash,theme,timezone) values ('$UserName','$Email','1','$salt','$pass','css/Spacelab.bs.min.css','Pacific Standard Time')";
            $result = mysqli_query($con, $query);
i dunno how to convert $salt and $pass for add it in DB...
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

Why not use the newuser API? viewtopic.php?f=21&t=244
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

bc i have few subdomains with dif engines and i want to megre all users in one list(DB)...

plz help with code above...
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

API is only supported method of adding users
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

so... if i make html reg form with redirectioin to API its will work?

http://site.com/api.ashx?o1=testuser&o2 ... &c=newuser

something like that
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

Panel generates a random password. I'd do c=newuser, o1=username, o2=email. Then do a newuseremail and panel will email user with new password.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

so... without mailserver its imposible
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

Use your ISP/hosts mail server.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

its DS, i have not mailserver
and plz type full example of api link coz this

http://site.com/api.ashx?c=newuser&o1=t ... t@mail.com

does not work
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

Most hosts offer a smtp server you can use. All OS's are capable of running a smtp server and provide software to do so.

You have to urlencode email addresses in URL parameters.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

what u mean? its just example -> newuser@mail.com
and how i should write email address?
plz just type full example of adding new user
Shadowless
Posts: 11
Joined: Wed Jan 24, 2024 4:45 pm
Contact:

Re: Users Registration

Post by Shadowless »

same with /api.ashx?o1=newuser&o2=newuser%40mail%2Ecom&c=newuser

everytime getting this error ERROR: A user name, password, and command at the minimum must be specified
Masher
Site Admin
Posts: 3617
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: Users Registration

Post by Masher »

you must specify your admin username and password as the error states. The u= and p=
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Post Reply