Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorpweil
     
    I've been trying to see whether or how I can use the admin plugin to function the same way acts_as_authenticated does in Rails. Am I wasting my time? With acts_as_authenticated, one can add a simple

    <% if logged_in? %>

    to set up a view block only for users who have logged in. acts_as_authenticated also includes convenient login and logout methods. I am not so interested in managing users as I am in authorizing a few people to log in and edit, add, or delete records from certain data tables. If anyone has constructed something along these lines in akelos, I'd love to see a simple howto, or at least a nudge in the right direction. In akelos I see simple http basic auth, which doesn't seem to have the flexibility I need, and I see the admin plugin, which I can't seem to figure out, other than for adding and managing users. Will someone be kind enough to shed some light on this?
    • CommentAuthorkkrzyzak
     

        $this->preferences->GetSiteName = $this->settings->getSiteName();
        $this->preferences->GetLogin = $this->user->getUserLogin();
        $this->preferences->GetId = $this->user->getUserId();
    

    } funtion getUserLogin() returns user login(yeah,really :P ) or false, if user isn't logged in. Usage is very simple: {?preferences.GetLogin}
    <!--only for logged in;) --> {end} ` Sorry for my language errors - English isn't my native language.

    • CommentAuthorpweil
     
    thanks kkrzyzak! Is there a way I can contact you off-list to go into this in a little more detail? Once I have success, I can post the results back here in the forum.

    my email: plweil@wisc.edu
    • CommentAuthorkkrzyzak
     

    I've send You an email ;)