3.1 Auth working example of login/logout controller methods?

9.9k Views Asked by At

Does anyone happen to have a working example of Auth in 3.1? I've been trying to get this to work, but have not had any luck.

New to Kohana, first attempt is 3.1. Found Bonafide, but don't need it since I'm starting w/ 3.1.

Been using examples from kerkness.ca's wiki, but they're for 3.0, and I'm too new to Kohana to know what to do. Would love to see a working example, hopefully to get buy-in from the rest of my dev team.

2

There are 2 best solutions below

0
On

Not sure what the problem was, but after my third from-scratch attempt, I was able to get it to work. I used this: http://github.com/biakaveron/kohana-auth/wiki

1
On

I have created a quick tutorial that shows how to use the Kohana 3.1 Auth module using the ORM driver. It covers the steps necessary to implement creating users, logging in and out, and viewing logged in user info. Hopefully it is a good starting point.

Link to tutorial: Auth module for Kohana 3.1 using ORM Driver