Password field should allow user-specified regex

Bug #1376806 reported by Steve McLellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Wishlist
Unassigned

Bug Description

The default password regex is very restrictive. It'd be nice to be able to specify the regex as part of the UI descriptor (and the existing one could be a default). This could be an additional attribute for 'password' fields with the defaults currently hardcoded in dynamic_fields -

 min_length: 7
 max_length: 255
 regex: '^.*(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[%(special_characters)s]).*$'
 special_characters: '!@#$%^&*()_+|\/.,~?><:{}'
 description_text: 'at least one letter, one number and one special character'

The help text becomes "Enter a password with %(description_text)s" and the error message becomes "The password must contain %(description_text)s".
The validator becomes regex % special_characters.

Changed in murano:
importance: Low → Wishlist
status: New → Confirmed
milestone: none → 2015.1
Changed in murano:
milestone: 2015.1.0 → none
Changed in murano:
milestone: none → liberty-1
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

We definitely should allow to set password string in ui definition

Changed in murano:
milestone: liberty-1 → liberty-2
Changed in murano:
milestone: liberty-2 → liberty-3
Changed in murano:
milestone: liberty-3 → liberty-rc1
Changed in murano:
milestone: liberty-rc1 → next
Changed in murano:
milestone: next → mitaka-1
Changed in murano:
assignee: nobody → Akanksha Srivastava (akanksha-dlf)
Changed in murano:
milestone: mitaka-1 → mitaka-2
Changed in murano:
milestone: mitaka-2 → mitaka-3
Changed in murano:
milestone: mitaka-3 → mitaka-rc1
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

I believe this one is already implemented by Kate

Changed in murano:
status: Confirmed → Fix Released
assignee: Akanksha Srivastava (akanksha-dlf) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.