Discussion on SimpleAuth : Very Simple Secure Login System


arnolem supports this item


147 comments found.

By far the best ever password script out there. And easy as 123. Thanks

Oh… one question. I tried to eliminate the password (so only one field) I set the password to nothing : ”” I also changed in the hatml type=”password” to type=”hidden” Unfortunately it did not work. Before I remove it (or comment out) the field I wanted to ask if there is another possibility to customize it. Here is the link to the login site: http://olafernst.com/clients.php Thanks

Hi Olernst, Thanks for your rating !

If you want to use only login without password, you can set an default password like “pass” on simpleauth.php file and edit the template to hide password field :

Replace :

<input class=”field password” type=”password” name=”${‘password_key_name’}” value=””/>

To :

<input class=”field password” type=”hidden” name=”${‘password_key_name’}” value=”pass”/>

I sent a few support questions via the email support contact form several days ago and have still not heard anything. Would appreciate a response. Thank you.


wixiweb Author Team


I am really sorry for the response time. I will answer you today

Great :)


wixiweb Author Team


Hi. I am looking to get data from a remote server (for individual users with own username and password) then show it in the browser. Would there be a way to use your form for that? Thank you

Hello, this script is for the purpose of authenticate and display the information of the users present in the configuration of the script. You can edit it easily for your own need but you need to master PHP

Hi – do you know if this script is compatible with xcrud?


SimpleAuth isn’t specific build for a specific library but you can use it with all PHP applications.

You can secure an entire website by adding a single line of code to the “index.php”

<?php ${(require_once('SimpleAuth.php'))} ?> protectme(); ?>

Is there a user management screen? Can I see an example?

Hello, You must edit a file for register users

hello, can with this script login users hawe accesss to separate folders with files , example user1 when login go to folder1, user2 to folder2 etc… without access same folders and files/restrict. thanks in advance

Yes, you can have :

- http://www.mywebsite.com/secure/index.php (Your defaut login page)
- http://www.mywebsite.com/secure/SimpleAuth.php (SimpleAuth core file)
- http://www.mywebsite.com/secure/user1/index.php (User 1 home)
- http://www.mywebsite.com/secure/user2/index.php (User 2 home)
You make authentification of All user on index.php page and you forward to a dedicated space :
$simpleAuth = ${(require_once(‘SimpleAuth.php’))} -> protectme();
$client = $simpleAuth -> getLogin();
header(‘Location: ’.$client); ?>

After, you can allow only 1 user for each page. Put this script on each secure/clientXXX/index.php :

$login = array_pop(explode(DIRECTORY_SEPARATOR, dirname( FILE ))); ${(require_once(’../SimpleAuth.php’))} -> protectme(array( ‘allowedUsers’ => array($login) )); ?>

I can send you an exemple. Please contact me to mail.


thanks, just purchased your script, just tell me on whatemail to contact you for an example