Skip to content

Commit

Permalink
Added ScalaToolsSnapshots reslover
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Nelson committed Nov 2, 2011
1 parent 910a61e commit 280091f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.markdown
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Expand Up @@ -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"
Expand Down

0 comments on commit 280091f

Please sign in to comment.