Simple Invoices logo
    • CommentAuthormlungu
    • CommentTimeOct 17th 2007 edited
     permalink
    Hi there,

    Just starting using simple invoices and all is well so far except...........

    I need to activate the authorisation function. I have found the description of how to do this, but with my non existent knowledge of sql I do not fully grasp it. For example :Run this sql-querie in phpmyadmin - I don't know how to do that. Is there a more detailed exact step by step example somewhere for dummies like me?

    I run this under windows by the way, not sure if that is relevant but I thought I'd mention it.

    Thanks a lot,

    Theo
    • CommentAuthorjustin
    • CommentTimeOct 17th 2007 edited
     permalink
    Hey Theo

    If your using the latest release of Simple Invoices all you have to do now is open config/config.php and change

    from

    //$authenticationOn = "true";
    $authenticationOn = "false";


    to

    $authenticationOn = "true";
    //$authenticationOn = "false";


    Cheers

    Justin
    • CommentAuthormlungu
    • CommentTimeOct 18th 2007 edited
     permalink
    Hi there,

    I tried that but now get the following error when I try to get in......any ideas?

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at F:\www\simpleinvoices\config\config.php:1) in F:\www\simpleinvoices\include\auth\auth.php on line 3

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\www\simpleinvoices\config\config.php:1) in F:\www\simpleinvoices\include\auth\auth.php on line 3

    Warning: Cannot modify header information - headers already sent by (output started at F:\www\simpleinvoices\config\config.php:1) in F:\www\simpleinvoices\include\auth\auth.php on line 16
    • CommentAuthorjustin
    • CommentTimeOct 19th 2007 edited
     permalink
    hmmm

    sometimes happens if youve edited the config or auth file and left some whitespace at the end of the file after ?>

    if youve edited the auth file you may want to restore it from the zip you downloaded

    Cheers

    Justin
    • CommentAuthormlungu
    • CommentTimeOct 22nd 2007 edited
     permalink
    Hi Justin,

    No go I'm afraid. I replaced the auth file but the result is the same..... Any more ideas?

    Cheers,

    Theo
    • CommentAuthorjustin
    • CommentTimeOct 23rd 2007 edited
     permalink
    Hey Theo,

    what language are you using? english,french,etc..

    Cheers

    Justin
    • CommentAuthormlungu
    • CommentTimeOct 23rd 2007 edited
     permalink
    Hi,

    I am using English..

    Cheers,

    Theo
    • CommentAuthorjustin
    • CommentTimeOct 23rd 2007 edited
     permalink
    Hey Theo

    im running out of idea - anyone else got the same errors?

    you might want to read up on using .htaccess to protect your Simple Invoices as the auth system doesnt seem to like you :)

    Cheers

    Justin
    • CommentAuthorcpankonien
    • CommentTimeOct 28th 2007 edited
     permalink
    i just got authentication working by following this wiki faq entry -
    http://simpleinvoices.org/wiki/doku.php?id=how_do_i_enable_authentification_ie_a_login_system_in_simple_invoices
    (note that the tables, etc, already existed)
    all i had to do was

    change false to true in config/config.php
    download the md5.js, put in correct dir
    login.php was already set to correct value (line 164 though)

    i changed the demo username, email address via phpmyadmin to my email, username, so now i log in with my email address and demo as password. anyone know how to change the passwords?
    • CommentAuthorjustin
    • CommentTimeOct 28th 2007 edited
     permalink
    Hi Cliff,

    re changing usernames and password
    - open up phpmyadmin
    - go to the users table and edit the user
    - on the password fields make sure you select MD5 from the drop down list and enter the password
    -- this will save the passwords md5 in the db and you should be able to login using the password you entered

    Cheers

    Justin
    • CommentAuthorcpankonien
    • CommentTimeOct 29th 2007 edited
     permalink
    Hi Justin,
    That works! Good on ya!
    • CommentAuthorjustin
    • CommentTimeNov 27th 2007 edited
     permalink
    thanks for the update cliff

    good to hear its all working ok

    cheers

    justin