Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User access info #8

Open
itsazzad opened this issue Feb 4, 2013 · 1 comment
Open

User access info #8

itsazzad opened this issue Feb 4, 2013 · 1 comment

Comments

@itsazzad
Copy link

itsazzad commented Feb 4, 2013

What is the default user access info in the frontend and backend?
What is the username and password?
What is the source of user information or where will I add new users?
What is the data structure/schema of user information?
What are the necessary steps for the user login to be worked?

@luizmcarvalho
Copy link

Hello,

Insert this in your two files:

/frontend/componentes/Controller.php and /backend/componentes/Controller.php

public function filters()
{
    return array( 'accessControl' ); // perform access control
}

public function accessRules()
{
    return array(
        // logged in users can do whatever they want to
        array('allow', 'users' => array('@')),
        // not logged in users can't do anything except above
        array('deny'),
    );
}

With that all controllers will allow actions are taken only by
authenticated users.

Luiz Fernando M. de Carvalho
Belo Horizonte - MG

2013/2/4 itsazzad [email protected]

What is the default user access info in the frontend and backend?
What are the necessary steps for the user login to be worked?


Reply to this email directly or view it on GitHubhttps://github.com//issues/8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants