Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
athena-session-example
main
Top Level Namespace
AccountController
AuthController
Database
IndexController
SecretController
Secure
SecureListener
Session
SessionListener
SessionStorage
User
Built with Crystal 1.9.2
2023-10-07 10:33:13 UTC
class
User
User
Reference
Object
Defined in:
athena-session-example.cr
Constructors
.new
(username : String, password, admin : Bool =
false
)
Class Method Summary
.find?
(username)
Instance Method Summary
#admin
: Bool
#password_hash
: String
#username
: String
#verify_password
(password)
Constructor Detail
def self.
new
(username : String, password, admin : Bool =
false
)
#
[
View source
]
Class Method Detail
def self.
find?
(username)
#
[
View source
]
Instance Method Detail
def
admin
: Bool
#
[
View source
]
def
password_hash
: String
#
[
View source
]
def
username
: String
#
[
View source
]
def
verify_password
(password)
#
[
View source
]