includes/clientside/static/login.js
changeset 1076 9c364fded738
parent 1075 f4b89aa4226d
child 1077 7f621a3a9cbf
equal deleted inserted replaced
1075:f4b89aa4226d 1076:9c364fded738
   684   bullet.style.margin = '0 6px 0 4px';
   684   bullet.style.margin = '0 6px 0 4px';
   685   
   685   
   686   // Field: enable Diffie Hellman
   686   // Field: enable Diffie Hellman
   687   if ( ajax_login_prevent_dh )
   687   if ( ajax_login_prevent_dh )
   688   {
   688   {
   689     boxen.appendChild(bullet);
   689     if ( logindata.user_level <= USER_LEVEL_MEMBER )
       
   690       // only show this if both checkboxes are visible
       
   691       boxen.appendChild(bullet);
       
   692       
   690     var lbl_dh = document.createElement('span');
   693     var lbl_dh = document.createElement('span');
   691     lbl_dh.style.fontSize = 'smaller';
   694     lbl_dh.style.fontSize = 'smaller';
   692     lbl_dh.style.textAlign = 'center';
   695     lbl_dh.style.textAlign = 'center';
   693     lbl_dh.innerHTML = $lang.get('user_login_ajax_check_dh_ie');
   696     lbl_dh.innerHTML = $lang.get('user_login_ajax_check_dh_ie');
   694     boxen.appendChild(lbl_dh);
   697     boxen.appendChild(lbl_dh);
   701     check_dh.id = 'ajax_login_field_dh';
   704     check_dh.id = 'ajax_login_field_dh';
   702     boxen.appendChild(check_dh);
   705     boxen.appendChild(check_dh);
   703   }
   706   }
   704   else
   707   else
   705   {
   708   {
   706     boxen.appendChild(bullet);
   709     if ( logindata.user_level <= USER_LEVEL_MEMBER )
       
   710       // only show this if both checkboxes are visible
       
   711       boxen.appendChild(bullet);
   707     
   712     
   708     var lbl_dh = document.createElement('label');
   713     var lbl_dh = document.createElement('label');
   709     lbl_dh.style.fontSize = 'smaller';
   714     lbl_dh.style.fontSize = 'smaller';
   710     lbl_dh.style.textAlign = 'center';
   715     lbl_dh.style.textAlign = 'center';
   711     var check_dh = document.createElement('input');
   716     var check_dh = document.createElement('input');