forked from jaliss/securesocial
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
mslinn edited this page Feb 4, 2013
·
3 revisions
Welcome to the securesocial wiki!
- You can detect if the user is authenticated in a view using the following code. This example could be placed in a template, so all your pages would have a Login or Logout link:
@if(request.getClass.getName.startsWith("securesocial.core.SecureSocial")){
<a href="/logout">Logout</a>
}else{
<a href="/login">Login</a>
}