Permalink
Browse files

Added ScalaToolsSnapshots reslover

  • Loading branch information...
1 parent 910a61e commit 280091fa378ca751946c9739d0baf54a8d3eb842 @eltimn committed Nov 2, 2011
Showing with 12 additions and 6 deletions.
  1. +10 −6 README.markdown
  2. +2 −0 build.sbt
View
@@ -60,7 +60,7 @@ MongoRecord user class, you can use this trait to define your MongoMetaRecord, i
"Remember Me" functionality is provided by _ExtSession_.
-_LoginToken_ provides a way for users that forgot their password can log in and change it. Users are sent a link with a token (an ObjectId)
+_LoginToken_ provides a way for users that forgot their password to log in and change it. Users are sent a link with a token (an ObjectId)
on the url. When they click on it they can be handled appropriately. The implementation is left up to you.
# Roles and Permissions
@@ -85,13 +85,13 @@ from any roles assigned to them and the individual permissions assigned to them.
Example:
- val superuser = Role.createRecord.id("superuser").permissions(List(Permission.all)).save
+ val superuser = Role.createRecord.id("superuser").permissions(List(Permission.all)).save
- user.roles(List(superuser))
+ user.roles(List(superuser))
- assert(user.hasRole("superuser")) == true)
- assert(user.lacksRole("superuser")) == false)
- assert(user.lacksRole("admin")) == true)
+ assert(user.hasRole("superuser")) == true)
+ assert(user.lacksRole("superuser")) == false)
+ assert(user.lacksRole("admin")) == true)
# SiteMap LocParams
@@ -111,6 +111,10 @@ Examples:
"Authenticated" means the user logged in by supplying their password. "Logged In" means the user was logged in by either
an ExtSession or LoginToken, or they are Authenticated.
+# Example Implementation
+
+The [lift-mongo](https://github.com/eltimn/lift-mongo.g8) giter8 template provides a fully functioning implementation of a basic user system.
+
# License
Apache v2.0. See LICENSE.txt
View
@@ -8,6 +8,8 @@ scalaVersion := "2.9.1"
crossScalaVersions := Seq("2.9.1", "2.9.0-1", "2.9.0", "2.8.2", "2.8.1", "2.8.0")
+resolvers += ScalaToolsSnapshots
+
libraryDependencies <++= (scalaVersion) { scalaVersion =>
val scalatestVersion = scalaVersion match {
case "2.8.0" => "1.3"

0 comments on commit 280091f

Please sign in to comment.