mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
- formating in storage.cr
This commit is contained in:
parent
8490cad191
commit
e413542c42
@ -11,7 +11,7 @@ def verify_password(hash, pw)
|
||||
(Crypto::Bcrypt::Password.new hash).verify pw
|
||||
end
|
||||
|
||||
def random_str()
|
||||
def random_str
|
||||
Base64.strict_encode UUID.random().to_s
|
||||
end
|
||||
|
||||
@ -88,7 +88,7 @@ class Storage
|
||||
end
|
||||
end
|
||||
|
||||
def list_users()
|
||||
def list_users
|
||||
results = Array(Tuple(String, Bool)).new
|
||||
DB.open "sqlite3://#{@path}" do |db|
|
||||
db.query "select username, admin from users" do |rs|
|
||||
|
Loading…
x
Reference in New Issue
Block a user