mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Security: with "Self Registration" and "Forgot Password" disabled in the Admin Panel, the Register (.at-signup-link) and Forgot Password (.at-pwd-link) links were hidden only by a one-shot jQuery .hide() in userFormsLayout.onRendered. When a login failed (notably the LDAP "User not Found" path), useraccounts re-rendered the form and recreated those link nodes without the inline display:none, so the links reappeared and exposed registration / password-reset flows that were meant to be off. The disable state is now also reflected as a class on the stable <body> ancestor (registration-disabled / forgotpwd-disabled) with matching CSS in userForm.css. Because the class sits on <body>, the rule re-hides every copy of the links that useraccounts recreates after a failed login, instead of relying on a single inline style that the re-render dropped. Thanks to Alsterdetektive1 and xet7.