I want to share with all raxan community authentication raxan plugin.
With this plugin you can simple protect your page with login, or manage user, group and permission page by page
and store user session to database (so you can have statistics of logged user and how mouch user is online).
This is the first realese and I will add more features ASAP.
in the zip folder there is also the 6 database tables:
- users
- user_logins
- groups
- permissions
- pages
- user_sessions
Example of usage:
For protect page (check if user can have permission to view page):
- Code: Select all
$this->auth->isAuthorize($this->activeView)
For check login form:
- Code: Select all
$this->auth->check($this->post->username, $this->post->password)
Logooff:
- Code: Select all
$this->auth->logoff()
Restore password:
- Code: Select all
$this->auth->restorepassword($this->post->email)
Create account:
- Code: Select all
$this->auth->createaccount($data)
Check if logged:
- Code: Select all
$this->auth->isLogged()
Have fun