Lines Matching refs:user
25 # To create an Htpasswd database with a single user:
58 user, pass = line.split(":")
65 @passwd[user] = pass
89 # Retrieves a password from the database for +user+ in +realm+. If
92 def get_passwd(realm, user, reload_db)
94 @passwd[user]
98 # Sets a password in the database for +user+ in +realm+ to +pass+.
100 def set_passwd(realm, user, pass)
101 @passwd[user] = make_passwd(realm, user, pass)
105 # Removes a password from the database for +user+ in +realm+.
107 def delete_passwd(realm, user)
108 @passwd.delete(user)
114 def each # :yields: [user, password]
115 @passwd.keys.sort.each{|user|
116 yield([user, @passwd[user]])