Comparison

plugins/mod_auth_internal_hashed.lua @ 12901:b884ddb5a0e7

mod_auth_internal_hashed: Add stub methods for enabling and disabling users But how and where?
author Kim Alvefur <zash@zash.se>
date Wed, 22 Feb 2023 15:32:40 +0100
parent 12900:5484debdfdfe
child 12902:0a0a251bcd6c
comparison
equal deleted inserted replaced
12900:5484debdfdfe 12901:b884ddb5a0e7
113 function provider.is_enabled(username) -- luacheck: ignore 212 113 function provider.is_enabled(username) -- luacheck: ignore 212
114 -- TODO look up somewhere and allow disabling 114 -- TODO look up somewhere and allow disabling
115 return true; 115 return true;
116 end 116 end
117 117
118 function provider.enable(username) -- luacheck: ignore 212
119 error "NYI"
120 end
121
122 function provider.disable(username) -- luacheck: ignore 212
123 error "NYI"
124 end
125
118 function provider.users() 126 function provider.users()
119 return accounts:users(); 127 return accounts:users();
120 end 128 end
121 129
122 function provider.create_user(username, password) 130 function provider.create_user(username, password)