summaryrefslogtreecommitdiffstats
path: root/acf/modules/aaa.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/modules/aaa.lua')
-rw-r--r--acf/modules/aaa.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/acf/modules/aaa.lua b/acf/modules/aaa.lua
index f8e28ca..1704376 100644
--- a/acf/modules/aaa.lua
+++ b/acf/modules/aaa.lua
@@ -1,5 +1,5 @@
--[[
-Copyright (c) 2012 Kaarle Ritvanen
+Copyright (c) 2012-2013 Kaarle Ritvanen
See LICENSE file for license details
--]]
@@ -14,6 +14,7 @@ User = M.new()
User.password = M.String
User.real_name = M.String
User.roles = M.Collection{type=M.Reference{scope='../../roles'}}
+function User:check_password(password) return password == self.password end
Authentication = M.new()
Authentication.users = M.Collection{type=User}