A BaseController was created to add in an interceptor and the authorization to all controllers via inheritance:
def beforeInterceptor = [action:this.&auth, except:['login', 'logout', 'register']]
def auth() {
if(!session.user) {
redirect(controller:'user',action:'login')
return false
}
}
Cobbled together a working rough login and registration page. The controllers and views will be the focus from now on.
The other blog is on hiatus for the moment :)
No comments:
Post a Comment