# HG changeset patch # User Kim Alvefur # Date 1679841934 -7200 # Node ID 6518139141511dadbd6bf0eee1087ba70cfcbcf5 # Parent 6d7e3d5463d821429db9875c9b5006ebdae343b1 mod_admin_shell: Enable user after creation with role Fixes that otherwise the user was created in a disabled state and left as such. diff -r 6d7e3d5463d8 -r 651813914151 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Sun Mar 26 16:45:23 2023 +0200 +++ b/plugins/mod_admin_shell.lua Sun Mar 26 16:45:34 2023 +0200 @@ -1533,6 +1533,11 @@ if not ok then return nil, "Could not set password for user: "..err; end + + local ok, err = um.enable_user(username, host); + if not ok and err ~= "method-not-implemented" then + return nil, "Could not enable user: "..err; + end end else local ok, err = um.create_user(username, password, host);