Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorkatun
    • CommentTimeOct 11th 2007
     
    Hello,

    I have a question. How can I implement a loginsystem? I created an account controller and an user model with these commands

    ./script/generate controller Account
    ./script/generate model User

    The fields for the user tabel are id, username, password.
    (./script/migrate/ User install)

    After this i scaffolded it: ./script/generate scaffold User Account

    Now I can add, edit and remove users. But everybody can do that. I would to build in a login. how can i do that? any ideas?
    •  
      CommentAuthorbermi
    • CommentTimeOct 11th 2007
     

    Hi Katun,

    Welcome to the Akelos forums!

    You can see a sample login/authentication system at in the Editam CMS source code

    I'm preparing right now an admin generator that will hopefully simplify the repetitive task of generating admins with RBAC for most users.

    Regards,

    Bermi

    • CommentAuthorkatun
    • CommentTimeOct 11th 2007
     
    thanks bermi... I try it ;)
    • CommentAuthormsmiller
    • CommentTimeJul 19th 2008
     
    Has anything more developed in this area? I'd like to try Akelos for a project I'm thinking of, but the lack of a basic user/account plugin (a'la acts_as_authenticated) worries me. Just about anything of use one would want to write for the web these days requires some kind of way for users to login. I don't even need a full admin - just a way to sign up, log in, get your password back, and manage the session stuff so I can have a nice is_logged_in/current_user_id methods someplace to work with in the code.

    A "how to" is enough - doesn't even need to be a plugin - a migration and a controller is fine. Anything.
Add your comments
    Username Password
  • Format comments as