2015-01-05 22:51:12 +00:00
|
|
|
db = require "lapis.db"
|
|
|
|
import Model from require "lapis.db.model"
|
|
|
|
|
|
|
|
export class Users extends Model
|
|
|
|
@timestamp: true
|
|
|
|
|
|
|
|
write_session: (r) =>
|
|
|
|
r.session.user = @id
|
2015-01-07 17:10:04 +00:00
|
|
|
r.session.sippw = @registrar_password
|