mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
PASSWORD_MIN_LENGTH (default 8) is now the length below which a sign-in is REPORTED, in the new Admin Panel / Problems / Password length, and PASSWORD_MIN_LENGTH_ENFORCE (off by default) is what makes it a rule: a shorter new password is refused, and an account that signs in with an older shorter one sees only "Change your password" until it has a long enough one. Signing in is never refused, enforced or not, so nobody is locked out by a minimum set after their password. LDAP, OAuth2, OIDC, SAML, CAS and Sandstorm accounts are neither reported nor asked: their password is their provider's. An administrator's Set password no longer applies WeKan's policy to such an account. Meteor sends a password hashed, so only the browser knows its length: it notes it on the sign-in form and, after a sign-in that worked, says "it was short" - never the password or its length. The page has both settings and a table, one row per account: username, first and last short-password login, the latest IPv4 and IPv6 address with the country's flag and city when a CDN says where it is, the count, and when it was fixed, with the Too short (default) / Fixed / All filter. Fixed is a changed password not seen short since; a short one seen again reopens the row. Changing one's own password - Member Settings, the forced change, a reset link - now signs EVERY session of the account out, the one that changed it too, and only the new password signs in again. The browser goes to the sign-in page as soon as it is signed out, since the server closes the connection before the answer can arrive. Documented in docs/Features/Admin-Panel/Problems/Password-length.md, the settings on every platform. The new strings are in every locale in English for now. Tests: passwordPolicy, passwordChangeRequired and shortPasswordLogins (node); password-min-length-signup-login, password-length-report and password-change-other-sessions (Playwright, Chromium and WebKit), which change each setting on the page and check what it does, and that sign-up with no mail server registers and signs the user in. Thanks to xet7 !
73 lines
4.2 KiB
JavaScript
73 lines
4.2 KiB
JavaScript
import '/client/components/settings/adminProblems.jade';
|
|
import '/client/components/settings/adminAuditLog.jade';
|
|
import '/client/components/settings/attachments.jade';
|
|
// Backup status and history, shared by Attachments / Backup and Problems / Backup.
|
|
import '/client/components/settings/backupRunsStatus.jade';
|
|
import '/client/components/settings/connectionMethod.jade';
|
|
import '/client/components/settings/informationBody.jade';
|
|
import '/client/components/settings/invitationCode.jade';
|
|
import '/client/components/settings/migrationProgress.jade';
|
|
import '/client/components/settings/notificationSettingsPopup.jade';
|
|
import '/client/components/settings/notificationDeliverySettings.jade';
|
|
import '/client/components/settings/emailToCardSettings.jade';
|
|
import '/client/components/settings/emailBounces.jade';
|
|
import '/client/components/settings/peopleBody.jade';
|
|
import '/client/components/settings/settingBody.jade';
|
|
import '/client/components/settings/sharedLabelsSettings.jade';
|
|
import '/client/components/settings/settingHeader.jade';
|
|
import '/client/components/settings/leftMenu.jade';
|
|
import '/client/components/settings/tablePage.jade';
|
|
import '/client/components/settings/tablePage.js';
|
|
import '/client/components/settings/translationBody.jade';
|
|
|
|
import '/client/components/settings/adminProblems.js';
|
|
import '/client/components/settings/attachments.js';
|
|
import '/client/components/settings/backupRunsStatus.js';
|
|
import '/client/components/settings/connectionMethod.js';
|
|
import '/client/components/settings/informationBody.js';
|
|
import '/client/components/settings/invitationCode.js';
|
|
// The left menu's caret. Its .jade above only DRAWS the caret: the click that
|
|
// folds the menu and the `isLeftMenuCollapsed` helper that says whether it is
|
|
// folded live here, and package.json sets meteor.mainModule, so a file nobody
|
|
// imports is simply not in the bundle. Without this line the caret rendered and
|
|
// did nothing - an unregistered helper is undefined, so the panel never took
|
|
// the `collapsed` class either. docs/Features/All-Boards/Left-Menu.md
|
|
import '/client/components/settings/leftMenu.js';
|
|
import '/client/components/settings/lockedUsersBody.js';
|
|
import '/client/components/settings/adminAuditLog.js';
|
|
import '/client/components/settings/migrationProgress.js';
|
|
import '/client/components/settings/notificationSettingsPopup.js';
|
|
// #3695: notification delivery (content, grouping, schedule) per channel, in
|
|
// Notification Settings and in each outgoing webhook form.
|
|
import '/client/components/settings/notificationDeliverySettings.js';
|
|
// #794: email to card, in the same popup.
|
|
import '/client/components/settings/emailToCardSettings.js';
|
|
// #794: Admin Panel -> E-mail -> Bounces.
|
|
import '/client/components/settings/emailBounces.js';
|
|
import '/client/components/settings/peopleBody.js';
|
|
import '/client/components/settings/settingBody.js';
|
|
import '/client/components/settings/sharedLabelsSettings.js';
|
|
import '/client/components/settings/settingHeader.js';
|
|
import '/client/components/settings/problemsSummary.jade';
|
|
import '/client/components/settings/problemsSummary.js';
|
|
import '/client/components/settings/passwordLengthReport.jade';
|
|
import '/client/components/settings/passwordLengthReport.js';
|
|
import '/client/components/settings/translationBody.js';
|
|
|
|
// adminProblems.css was missing here, so NONE of the Admin Panel report styling
|
|
// was in the bundle (package.json sets meteor.mainModule, so a CSS file that is
|
|
// never imported is simply not loaded). That is why the report search box and
|
|
// the prev/next pagination buttons fell back to the global `button` rule in
|
|
// forms.css and rendered with a black/grey background instead of the theme.
|
|
import '/client/components/settings/adminProblems.css';
|
|
import '/client/components/settings/attachments.css';
|
|
import '/client/components/settings/informationBody.css';
|
|
import '/client/components/settings/lockedUsersBody.css';
|
|
import '/client/components/settings/adminAuditLog.css';
|
|
import '/client/components/settings/migrationProgress.css';
|
|
import '/client/components/settings/peopleBody.css';
|
|
import '/client/components/settings/settingBody.css';
|
|
import '/client/components/settings/settingHeader.css';
|
|
import '/client/components/settings/tablePage.css';
|
|
import '/client/components/settings/translationBody.css';
|