The Kohana Auth module provides an easy-to-use API for basic website authentication (users) and authorization (roles)
Questions tagged [kohana-auth]
69 questions
2
votes
1 answer
Kohana validation 3.3
How do I properly validate a submitted form? I've been looking in the documentation on http://kohanaframework.org/3.3/guide/orm/validation and http://kohanaframework.org/3.3/guide/kohana/security/validation, the latter also tells me "This page needs…

user1831020
- 217
- 3
- 13
1
vote
1 answer
Kohana Auth login with email not username
So as the title says i want to login with my email, not username, now my login works with username, but i can't find a way to change that, so i'm using this basic login code:
Auth::instance()->login($post['email'],$post['password'], false
EDIT…

Linas
- 4,380
- 17
- 69
- 117
1
vote
1 answer
kohana registration returns error
I have working registration script the only problem is that i do not know how to check if username already exist because now if email or username already exist it returns me this fatal error: ORM_Validation_Exception [ 0 ]: Failed to validate array…

Linas
- 4,380
- 17
- 69
- 117
1
vote
1 answer
Kohana-Change password for admin using file driver
How can I change the password for a user in kohana, using the file driver?

user1030275
- 13
- 4
1
vote
1 answer
how to extend kohana user auth module
So i'm using kohana user module, and i would like to extend my register page, now it adds username, email, and password but i would like to add some extra fields, and i just can't find where can i do it.
I found function action_register which leads…

Linas
- 4,380
- 17
- 69
- 117
1
vote
2 answers
Kohana user model
I'm trying to add custom pages to user model.
If I would be making simple pages I would simply create controller in my application\classes\controller and a view file in \application\views, but now I would like to do same thing with user module.
I…

Linas
- 4,380
- 17
- 69
- 117
1
vote
1 answer
User is not properly logged in Kohana with Auth module
I'm using the Auth module for managing users inside Kohana.
When I use the login($username, $password, $remember) method it succeeds validating the user but then when I ask if the users is logged in (logged_in() method) it returns false.
What am I…

Felipe Peña
- 2,712
- 4
- 22
- 41
1
vote
3 answers
not getting user id from from Auth::instance->get_user()-id in Kohana
I am using auth module of kohana. I did register and login and its working fine. But when i do Auth::instance()->get_user()->id i get NULL
While login i do it with Auth::instance()->login($validator['email'], $validator['password']) and then…

jimy
- 4,848
- 3
- 35
- 52
1
vote
1 answer
How to set up protected static files in Kohana 3.1
I'm using Kohana 3.1 with the ORM/Auth module enabled. I would like to serve static files (docs, pdfs, etc.) only to people with role A, in directory A_only.
Since the .htaccess files just serves URLs that it finds directly and doesn't hand it off…

dualistic
- 13
- 3
1
vote
1 answer
Kohana 3 throwing a fatal error when validating
Trying to follow the example on the wiki here: extending model Auth user class, and I am hitting a fatal error when it goes to validate.
ErrorException [ Fatal Error ]: Class 'Validate' not found
Any ideas? Here's the piece of code it fails on:…

JoeCortopassi
- 5,083
- 7
- 37
- 65
1
vote
1 answer
Kohana auth counting get_user as a login?
I am messing about with KO3 and the auth module, I have logins working quite well, but I have noticed that every time I refresh the page the login count for my user increments.
I am pretty sure it is coming from this section.
// Check if logged…

Olical
- 39,703
- 12
- 54
- 77
1
vote
1 answer
Handling validation exceptions when trying to create a user (Kohana 3.1 ORM / Auth module)
Using Kohana 3.1 with the Auth ORM module, if I create a new user using create_user, how can I handle validation exceptions and display an error for each one in the page? In this case, the password is to short (< 8 characters), but it could also be…

SamWM
- 5,196
- 12
- 56
- 85
1
vote
1 answer
how to get multiple checkbox value in "KOHANA FRAMEWORK"?
"KOHANA FRAMEWORK" submit button how to get selected check box value and how to insert in database.
My page has two fields textbox and second checkbox.
I trying to insert checkbox and textbox value but textbox value is possible to get but checkbox…

Nitin Godhani
- 51
- 10
1
vote
2 answers
Using PHP, Kohana 3, and the Auth module, how to structure database for additional user info beyond username, email and password
I'm building the next Facebook!! No, kidding.
I'm building a simple site to help me learn. It will allow users to log in with an email and password.
There will be other information collected from the user that is pertinent to the sites…

brennanag
- 583
- 1
- 5
- 12
1
vote
1 answer
Kohana 3: Login without salt
We're developing a software that will manage users and I need to build an application with Kohana 3 and Auth Module. My application will allow just login. I don't need to append a salt to the passwords when user log in. How could i do that?
Thank…

Thomas
- 11
- 2