login problem
  • abhiabhi July 2009

    hi all,

    I have read through http://simpleinvoices.org/forum/discussion/807/ and various discussions regarding login. I have set authentication.enabled = true, in config/config.ini. I have added an extra field in si_user called "is_activated" which is set to "0" by default at the time a user registers. At the time of activation the "is_activated" is set to "1". And login has to restricted only to users who have activated their account. Also a login user should only be able to see his invoice and other details. Currently a user can see all others accounts details. Is there a means to restrict that. Also as I understand all login level coding are handled by modules/auth/login.php file. But as I don't know zend framework, I am having trouble understanding the code. What do you mean by getNumberOfDoneSQLPatches(). I see this function a lot in the file.
    The query for user registration as I have implemented is
    $sql="INSERT INTO si_user (email,role_id,domain_id,password,enabled, is_activated)VALUES
    ('".$email."','1','1',md5('".$password."'),'1','0')";
    where email = user email given at the time of registration and password is user choosen password.
    I am not sure for what role_id and domain_id stands, But have given them a value of 1.
    After loggin in, when the user tries to access the dash board it displays a blank page. Why is it so. Is it because my query has inappropriate values for role_id and domain_id? is there any good documentation for coding support in simple_invoice. Any reply is welcomed.

  • abhiabhi July 2009

    I got login problem fixed. All you need to do is learn zend auth.

  • farlisfarlis January 8

    Dear abhi,
    please help me, how to fixed it. do you have a link that i want to download.

    actually, i want to have multiple staff for using this.

    1. administrator
    - can look all their invoice and setting up freely
    - admin only can add biller and staff (unlimited person)

    2. biller
    - the biller can do something like admin but not setting mode
    - can proccess the payment

    3. staff
    - can not process the payment
    - can add user and invoice for unlimited number but them can only look for their invoice and their user only

    4. viewer
    - they can add invoice and add user also like staff but do not process the payment or we can do something like group, only that group can look their invoice and user

    5. user
    - can login and process their invoice only

    thank you, what should i do ..

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories