User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.

Simple Invoices login system

Simple Invoices has an optional login system to allow you to protect your install of Simple Invoices with a username/password system

To enable this login system please follow the below info

Current Info

If you are using a version of Simple Invoices later than 2007 08 then all you have to do is edit config/config.ini and set authentication.enabled to true

To do this just change the file from

authentication.enabled	       = false

to

authentication.enabled	       = true

thats it - you can login using the below details

Email address [email protected]
Password demo

refer: http://simpleinvoices.org/config#authentication

Pre 2009.1 Info

If you are using a version of Simple Invoices later than 2007 08 then all you have to do is edit config/config.php and set $AuthenticationOn to true

To do this just change the file from

//if you want to make Simple Invoices secure and require a username and password set this to true
//$authenticationOn = "true";
$authenticationOn = "false";

to

//if you want to make Simple Invoices secure and require a username and password set this to true
$authenticationOn = "true";
//$authenticationOn = "false";

thats it - you can login using the belwo details

Email address [email protected]
Password demo

refer: http://www.simpleinvoices.org/forum/topic-post1870.html#post1870 for how to change the login details

Old Info

Since Simple Invoices version (20061027) there is now an optional Authentification system (ie a login system) for Simple Invoices

to enable this feature open the file ./include/include_auth.php and uncomment the code (refer below)

from

<?php
 
//To turn authentification on uncomment (remove the /* and */) the lines below
 
/*
if ($_GET['location'] == 'pdf' ) {
        include('../include/auth/auth.php');
} 
else {
        include('./include/auth/auth.php');
}
*/
 
 
?>

to this

<?php
 
//To turn authentification on uncomment (remove the /* and */) the lines below
 
 
if ($_GET['location'] == 'pdf' ) {
        include('../include/auth/auth.php');
} 
else {
        include('./include/auth/auth.php');
}
 
 
?>

NOTE: In the July/August 2007 release of Simple Invoices you now longer need to do the above step. You just edit config/config.php and set $AuthenticationOn to true

$AuthenticationOn = "true";

the next step is to create the authenfication table in the table, open phpMyAdmin and execute the following sql

CREATE TABLE si_users (
user_id int(11) NOT NULL AUTO_INCREMENT,
user_email VARCHAR(100) NOT NULL,
user_name VARCHAR(100) NOT NULL,
user_group VARCHAR(10) NOT NULL,
user_domain VARCHAR(10) NOT NULL,
user_password CHAR(32) NOT NULL,
 
PRIMARY KEY (user_id)
);
 
INSERT INTO si_users (user_id, user_email, user_name, user_group, user_domain, user_password) VALUES ('',[email protected]','guest','1','1', md5('guest'));
INSERT INTO si_users (user_id, user_email, user_name, user_group, user_domain, user_password) VALUES ('',[email protected]','demo','1','1', md5('demo'));
INSERT INTO si_users (user_id, user_email, user_name, user_group, user_domain, user_password) VALUES ('',[email protected]','admin','1','1', md5('admin'));
 
CREATE TABLE `si_auth_challenges` (
`challenges_key` INT( 11 ) NOT NULL ,
`challenges_timestamp` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

now when you attempt to use Simple Invoices you'll be presented with a login screen

this is still in the testing phase, there is no nice user admin section in Simple Invoices yet, if you need to change/add/delete user information it must be done directly in the database

re: http://simpleinvoices.org/forum/topic.php?post=1416#post1416 for md5 fix



Links: Frequently Asked Questions | Help

Discussion

Kevin, 2009/11/24 21:16

Anyone know how to change the username and password? Password is encrypted in DB so a simple DB edit does not work and I don't see any way within the user interface.

Thx

justin, 2009/11/25 03:31

hey kevin

since Simple Invoices 2009.1 you can edit a username and password within Simple Invoices - go to the People tab and select Users

re db - use the mysql MD5(new_password) sql to adjust a users password

cheers

justin

AL MUBARAK`, 2010/05/25 16:15

Hai Justin.,

    Could you tell me how to create a login for users in simple invoices. because when i create a new account for user and viewers in people tab. there is none of detailes for user and viewer in drop down. then how can i create a new account. and how to make them a separate privileges, like admin own the whole site and the user were only accessed to send daily expenses in invoice and send mail to admin.

Pls tell me how to rectify that issue.

Thanks in Advance,

justin, 2010/05/31 03:48

hey al

spoke to you on im re this

post how you have gone

cheers

justin

carlos, 2010/06/13 22:46

hi Justin, I've the same problem than AlMubarak: 'there is none of detailes for user and viewer in drop down.' How can I create an user account without privileges? So please, can you help me too? ThankYou very much, and very good job with Simpleinvoice!

justin, 2010/06/15 01:21

hey carlos

a user/view account is not yet available in Simple Invoices :(

in the future releases i'll look to add more user types ie. user, customer etc..

cheers

justin

cef de metser, 2012/05/01 08:20

Installation of latest stable simpleinvoices on ubuntu 10.04, with authentication.enabled = true, always redirects me to the login page even when the provided credentials are correct (i.e. the default). I'm running invoices not at 'localhost', but i'm using a remote location which is using ssl (https). Is it possible that the handling of https links has anything to do with this behavior?

Thanks!

 
 | wiki/how_do_i_enable_authentification_ie_a_login_system_in_simple_invoices.txt · Last modified: 2016/10/11 06:15 (external edit)