Skip to content

Commit

Permalink
[4.0] {Cassiopea] Implementing Password length/meter
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 authored and drmenzelit committed Aug 31, 2020
1 parent 494e4db commit 64b99dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion administrator/language/en-GB/com_users.ini
Expand Up @@ -69,7 +69,6 @@ COM_USERS_DEBUG_IMPLICIT_DENY="Not Allowed"
COM_USERS_DEBUG_PERMISSIONS="Permissions"
COM_USERS_DEBUG_USER_TABLE_CAPTION="Table of Permissions"
COM_USERS_DELETE_ERROR_INVALID_GROUP="You can't delete user groups to which you belong."
COM_USERS_DESIRED_PASSWORD="Enter your desired password."
COM_USERS_EDIT_NOTE="Edit Note"
COM_USERS_EDIT_NOTE_N="Editing note with ID #%d"
COM_USERS_EDIT_USER="Edit User %s"
Expand Down
9 changes: 5 additions & 4 deletions components/com_users/forms/registration.xml
Expand Up @@ -36,21 +36,22 @@
name="password1"
type="password"
label="COM_USERS_PROFILE_PASSWORD1_LABEL"
description="COM_USERS_DESIRED_PASSWORD"
description="COM_USERS_PASSWORD_LENGTH"
required="true"
autocomplete="new-password"
class="validate-password"
field="password1"
filter="raw"
size="30"
validate="password"
required="true"
strengthmeter="true"
force="on"
filter="raw"
/>

<field
name="password2"
type="password"
label="COM_USERS_PROFILE_PASSWORD2_LABEL"
description="COM_USERS_PROFILE_PASSWORD2_DESC"
autocomplete="new-password"
class="validate-password"
field="password1"
Expand Down
1 change: 1 addition & 0 deletions language/en-GB/com_users.ini
Expand Up @@ -48,6 +48,7 @@ COM_USERS_MAIL_FAILED="Failed sending email."
COM_USERS_MAIL_SEND_FAILURE_BODY="An error was encountered when sending the user registration email. The error is: %s The user who tried to register is: %s"
COM_USERS_MAIL_SEND_FAILURE_SUBJECT="Error sending email"
COM_USERS_OR="or"
COM_USERS_PASSWORD_LENGTH="Enter at least 12 characters."
COM_USERS_PROFILE="User Profile"
COM_USERS_PROFILE_BIND_FAILED="Could not bind profile data: %s"
COM_USERS_PROFILE_CORE_LEGEND="Profile"
Expand Down
1 change: 1 addition & 0 deletions language/en-GB/joomla.ini
Expand Up @@ -189,6 +189,7 @@ JFIELD_META_RIGHTS_DESC="Describe what rights others have to use this content."
JFIELD_META_RIGHTS_LABEL="Content Rights"
JFIELD_ORDERING_DESC="Ordering of the article within the category."
JFIELD_ORDERING_LABEL="Ordering"
JFIELD_PASSWORD_INDICATE_COMPLETE="Password accepted"
JFIELD_PASSWORD_INDICATE_INCOMPLETE="Password doesn't meet site's requirements."
JFIELD_PASSWORD_NOT_ENOUGH_INTEGERS_N="Password does not have enough digits. At least %s digits are required."
JFIELD_PASSWORD_NOT_ENOUGH_INTEGERS_N_1="Password does not have enough digits. At least 1 digit is required."
Expand Down
5 changes: 5 additions & 0 deletions templates/cassiopeia/scss/blocks/_global.scss
Expand Up @@ -36,3 +36,8 @@ dd {
.mod-menu {
flex-direction: column;
}

// meter element
meter {
width: 100%;
}

0 comments on commit 64b99dd

Please sign in to comment.