# HG changeset patch # User Matthew Wild # Date 1779705467 -3600 # Node ID 58ca617f68d52cc6616c015443f2d1a4a953a1e1 # Parent f149652cb5ff2f627d3e97b642a5e5e671f58fae mod_register_ibr: Use set_password() instead of create_user() for resets Looks like a copy/paste failure? We used to use create_user(), and it still "works", but we will probably tighten that up soon. set_password() is the way to change the password of an existing account. diff -r f149652cb5ff -r 58ca617f68d5 plugins/mod_register_ibr.lua --- a/plugins/mod_register_ibr.lua Tue May 19 19:26:42 2026 +0100 +++ b/plugins/mod_register_ibr.lua Mon May 25 11:37:47 2026 +0100 @@ -11,7 +11,7 @@ local dataform_new = require "prosody.util.dataforms".new; local usermanager_user_exists = require "prosody.core.usermanager".user_exists; local usermanager_create_user_with_role = require "prosody.core.usermanager".create_user_with_role; -local usermanager_set_password = require "prosody.core.usermanager".create_user; +local usermanager_set_password = require "prosody.core.usermanager".set_password; local usermanager_delete_user = require "prosody.core.usermanager".delete_user; local nodeprep = require "prosody.util.encodings".stringprep.nodeprep; local util_error = require "prosody.util.error";