Changeset 4158


Ignore:
Timestamp:
Oct 31, 2009, 5:42:23 AM (11 years ago)
Author:
LucMorizur
Message:

[Event Cats] Add confirm password on user creation

Location:
extensions/event_cats
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.js

    r4157 r4158  
    476476    return false;
    477477  }
     478  return true;
    478479}
    479480
     
    592593  ) {
    593594    alert(ec_JS_message['ec_submit_action_miss']);
     595    return false;
     596  }
     597  if (
     598    de('ec_sel_user_new').checked != '' &&
     599    de('ec_in_up_psd_txt_id').value != '' && (
     600      de('ec_in_up_psd_txt_id').value != de('ec_confirm_psd_txt_id').value
     601    )
     602  ) {
     603    alert(ec_JS_message['ec_conf_pwd_dont_match']);
    594604    return false;
    595605  }
  • extensions/event_cats/admin/template/autolog_new.tpl

    r4157 r4158  
    122122    {* <!-- User to identify --> *}
    123123    <tr>
    124       <td style = "vertical-align:top; font-weight:bold;">{'ec_up_code_lbl_user'|@translate}</td>
     124      <td style = "vertical-align:top; font-weight:bold;">
     125        {'ec_up_code_lbl_user'|@translate}<br>
     126        <br>
     127        <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn1">&nbsp;</span><br>
     128        <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn2">&nbsp;</span>
     129      </td>
    125130      <td>
    126131        {if !$ec_is_creation}
     
    157162              />
    158163            </label>
     164            <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'ec_confirm_pswd'|@translate}<br>
     165              <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/>
     166            </label>
    159167            <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id">
    160168              <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id"
     
    167175               size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;"
    168176              />
    169             </label>
    170             <label class = "ec_block"><span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn1">&nbsp;</span><br>
    171               <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn2">&nbsp;</span>
    172177            </label>
    173178          </li></ul><br>
     
    272277  ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}";
    273278  ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}";
     279  ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}";
    274280  ec_JS_message['ec_up_code_lbl_home']    = "{'ec_up_code_lbl_home'|@translate}";
    275281  ec_JS_message['ec_submit_code_miss']    = "{'ec_submit_code_miss'|@translate}";
  • extensions/event_cats/language/fr_FR/plugin.lang.php

    r4157 r4158  
    6161$lang['ec_new_user_name']         = 'Nom d\'utilisateur';
    6262$lang['ec_new_user_pswd']         = 'Mot de passe';
     63$lang['ec_confirm_pswd']          = 'Confirmez :';
    6364$lang['ec_new_user_group']        = 'Nouveau groupe';
    6465$lang['ec_up_code_lbl_gen_user']  = 'Générer un nom d\'utilisateur d\'après l\'action choisie';
     
    8990$lang['ec_code_already_exists']   = 'Ce code existe déjà.';
    9091$lang['ec_user_already_exists']   = 'Ce nom d\'utilisateur existe déjà.';
     92$lang['ec_conf_pwd_dont_match']   = 'Le mot de passe n\'est pas correctement confirmé.';
    9193
    9294// In PHP files
Note: See TracChangeset for help on using the changeset viewer.