[CLOSED] Password mask pattern min characters

  1. #1

    [CLOSED] Password mask pattern min characters

    Hi,
    I am trying to set the minimum characters of a password field to 6.
    And require letters and numbers.
    I have taken an example from another thread - http://forums.ext.net/showthread.php?26487

    <ext:TextField runat="server" ID="TextField1" FieldLabel="Password"
                                MsgTarget="Under" AllowBlank="false">
                                <Plugins>
                                    <ext:PasswordMask ID="PasswordMask4" runat="server" Mode="ShowLast" StrictPassword="true"
                                        Pattern="abcde1">
                                    </ext:PasswordMask>
                                </Plugins>
                            </ext:TextField>
    The problem is is that it is accepting "abcd1" even though that is 5 chars.

    It seems to be counting the number 1 as both a letter and a number. It will not accept "abcde".

    Another problem with passwordmask is it shows an error if i type 3 characters the same (Repeating characters like "aaa").
    Is there a way to remove that validation or maybe better to change how many characters triggers this validation to 4 or 5.


    Thanks
    Fergus
    Last edited by Daniil; Oct 15, 2013 at 3:25 PM. Reason: [CLOSED]
  2. #2
    The problem is is that it is accepting "abcd1" even though that is 5 chars.
    Set AcceptRate="1" for the plugin

    Another problem with passwordmask is it shows an error if i type 3 characters the same (Repeating characters like "aaa").
    Is there a way to remove that validation or maybe better to change how many characters triggers this validation to 4 or 5.
    Password with repeating symbols (one repeating symbol) is not allowed. Such checking cannot be deactivated (only if change validation logic, override calculateStrength javascript method). Just continue to typing (other symbols) and the error will gone. Or you want to allow password like 'aaa'?
  3. #3
    Hi Vladimir,
    Thanks for the reply.
    Acceptrate=1 has worked.

    As regards the repeating characters, my mistake, i thought it would happen at the end of a password also but it does not.

    You can mark as solved.

    Thanks
    Fergus

Similar Threads

  1. [CLOSED] How do I use the new Password mask plug in.
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 03, 2013, 4:56 AM
  2. [CLOSED] InputMask pattern question
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 14, 2013, 4:32 PM
  3. [CLOSED] Can Ext.Net be used with this pattern?
    By bogc in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 07, 2012, 2:00 AM
  4. Implement a Password Meter to a Password Field
    By sudantha in forum 1.x Help
    Replies: 1
    Last Post: Jan 15, 2012, 6:59 AM
  5. MVC with ViewModel pattern (MVVM)
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: May 28, 2010, 7:08 AM

Tags for this Thread

Posting Permissions