Commit ae9070ce authored by John James Jacoby's avatar John James Jacoby
Browse files

Allow numbers in usernames.

This seems to hang people up a bit, and WordPress now allows for this safely.
parent 93dbc4ca
Pipeline #882 skipped
......@@ -7,7 +7,7 @@ jQuery( document ).ready( function ( $ ) {
fields: {
username : {
rules: [ {
type : 'regExp[/^[a-z\s_-]+$/]'
type : 'regExp[/^[a-z0-9\s_-]+$/]'
}, {
type : 'minLength[2]'
}, {
......
......@@ -50,7 +50,7 @@ function wp_join_page_get_string( $key = '' ) {
'lastname' => esc_html__( 'Last Name', 'wp-join-page' ),
'email' => esc_html__( 'Email Address', 'wp-join-page' ),
'strong_pw' => esc_html__( 'Make it strong!', 'wp-join-page' ),
'lowercase' => esc_html__( 'Lowercase, no numbers or symbols', 'wp-join-page' ),
'lowercase' => esc_html__( 'Lowercase, no symbols', 'wp-join-page' ),
// Buttons
'btn_cancel' => esc_html__( 'Cancel', 'wp-join-page' ),
......
......@@ -32,7 +32,7 @@ endif;
<div class="two fields">
<div class="field">
<label><?php echo wp_join_page_get_string( 'username' ); ?></label>
<input type="text" id="username" name="username" pattern="^[a-z\s_-]+$" placeholder="<?php echo wp_join_page_get_string( 'lowercase' ); ?>" value="" autocomplete="off">
<input type="text" id="username" name="username" pattern="^[a-z0-9\s_-]+$" placeholder="<?php echo wp_join_page_get_string( 'lowercase' ); ?>" value="" autocomplete="off">
</div>
<div class="field">
<label><?php echo wp_join_page_get_string( 'password' ); ?></label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment