Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorkatun
     
    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
     

    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
     
    thanks bermi... I try it ;)
    • CommentAuthormsmiller
     
    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.