From 280091fa378ca751946c9739d0baf54a8d3eb842 Mon Sep 17 00:00:00 2001 From: Tim Nelson Date: Wed, 2 Nov 2011 08:50:41 -0500 Subject: [PATCH] Added ScalaToolsSnapshots reslover --- README.markdown | 16 ++++++++++------ build.sbt | 2 ++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.markdown b/README.markdown index 961ec31..4e7502f 100644 --- a/README.markdown +++ b/README.markdown @@ -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 diff --git a/build.sbt b/build.sbt index 1f7a477..d984449 100644 --- a/build.sbt +++ b/build.sbt @@ -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"