[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm /interface courseprefs.pm createaccount.pm domainprefs.pm loncommon.pm loncreateuser.pm
raeburn
raeburn at source.lon-capa.org
Tue Oct 18 19:28:01 EDT 2022
raeburn Tue Oct 18 23:28:01 2022 EDT
Modified files:
/loncom/interface courseprefs.pm createaccount.pm domainprefs.pm
loncommon.pm loncreateuser.pm
/loncom/homework bridgetask.pm
Log:
- Hint to browsers to not autofill password fields.
-------------- next part --------------
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.115 loncom/interface/courseprefs.pm:1.116
--- loncom/interface/courseprefs.pm:1.115 Thu Sep 8 01:41:13 2022
+++ loncom/interface/courseprefs.pm Tue Oct 18 23:28:00 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.115 2022/09/08 01:41:13 raeburn Exp $
+# $Id: courseprefs.pm,v 1.116 2022/10/18 23:28:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5991,13 +5991,13 @@
'<label><input type="radio" value="1" name="linkprot_changesecret_'.$i.'" onclick="javascript:toggleLinkProt(this.form,'."'$i','secret'".');"'.$disabled.' />'.&mt('Yes').
'</label> </span><div id="linkprot_divchgsecret_'.$i.'" style="display:none" />'.
'<span class="LC_nobreak">'.&mt('New Secret').':'.
- '<input type="password" size="20" name="linkprot_secret_'.$i.'" value="" autocomplete="off"'.$disabled.' />'.
+ '<input type="password" size="20" name="linkprot_secret_'.$i.'" value="" autocomplete="new-password"'.$disabled.' />'.
'<label><input type="checkbox" name="linkprot_visible_'.$i.'" id="linkprot_visible_'.$i.'" onclick="if (this.checked) { this.form.linkprot_secret_'.$i.'.type='."'text'".' } else { this.form.linkprot_secret_'.$i.'.type='."'password'".' }"'.$disabled.' />'.&mt('Visible input').'</label>'.
'<input type="hidden" name="linkprot_id_'.$i.'" value="'.$num.'" /></span></div>';
} else {
$datatable .=
'<span class="LC_nobreak">'.$desc{'secret'}.':'.
- '<input type="password" size="20" name="linkprot_secret_'.$i.'" value="" autocomplete="off"'.$disabled.' />'.
+ '<input type="password" size="20" name="linkprot_secret_'.$i.'" value="" autocomplete="new-password"'.$disabled.' />'.
'<label><input type="checkbox" name="linkprot_visible_'.$i.'" id="linkprot_visible_'.$i.'" onclick="if (this.checked) { this.form.linkprot_secret_'.$i.'.type='."'text'".' } else { this.form.linkprot_secret_'.$i.'.type='."'password'".' }"'.$disabled.' />'.&mt('Visible input').'</label>'.
'<input type="hidden" name="linkprot_id_'.$i.'" value="'.$num.'" /></span>';
}
@@ -6061,7 +6061,7 @@
} else {
$datatable .= '<span class="LC_nobreak">'.$desc{'key'}.':<input type="text" size="25" name="linkprot_key_add" value="" autocomplete="off"'.$disabled.' /></span> '."\n".
(' 'x2).
- '<span class="LC_nobreak">'.$desc{'secret'}.':<input type="password" size="20" name="linkprot_secret_add" value="" autocomplete="off"'.$disabled.' />'.
+ '<span class="LC_nobreak">'.$desc{'secret'}.':<input type="password" size="20" name="linkprot_secret_add" value="" autocomplete="new-password"'.$disabled.' />'.
'<label><input type="checkbox" name="linkprot_visible_add" id="linkprot_visible_add" onclick="if (this.checked) { this.form.linkprot_secret_add.type='."'text'".' } else { this.form.linkprot_secret_add.type='."'password'".' }"'.$disabled.' />'.&mt('Visible input').'</label></span> '."\n";
}
$datatable .= '<br /><br />'.
Index: loncom/interface/createaccount.pm
diff -u loncom/interface/createaccount.pm:1.86 loncom/interface/createaccount.pm:1.87
--- loncom/interface/createaccount.pm:1.86 Mon Feb 14 01:15:24 2022
+++ loncom/interface/createaccount.pm Tue Oct 18 23:28:00 2022
@@ -4,7 +4,7 @@
# kerberos, or SSO) or an e-mail address. Requests to use an e-mail address as
# username may be processed automatically, or may be queued for approval.
#
-# $Id: createaccount.pm,v 1.86 2022/02/14 01:15:24 raeburn Exp $
+# $Id: createaccount.pm,v 1.87 2022/10/18 23:28:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -740,7 +740,7 @@
$lonhost);
$output = &serverform($logtoken,$lonhost,undef,$courseid,$context);
my $unameform = '<input type="text" name="uname" size="20" value="" autocomplete="off" />';
- my $upassform = '<input type="password" name="upass'.$now.'" size="20" autocomplete="off" />';
+ my $upassform = '<input type="password" name="upass'.$now.'" size="20" autocomplete="new-password" />';
$output .= '<form name="client" method="post" action="" onsubmit="return(send('."'server','client'".'));">'."\n".
&Apache::lonhtmlcommon::start_pick_box()."\n".
&Apache::lonhtmlcommon::row_title($titles{$context},
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.414 loncom/interface/domainprefs.pm:1.415
--- loncom/interface/domainprefs.pm:1.414 Sun Sep 18 22:33:45 2022
+++ loncom/interface/domainprefs.pm Tue Oct 18 23:28:00 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.414 2022/09/18 22:33:45 raeburn Exp $
+# $Id: domainprefs.pm,v 1.415 2022/10/18 23:28:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6583,12 +6583,12 @@
'<label><input type="radio" value="1" name="ltisec_changeprivkey_'.$hostid.'" onclick="javascript:togglePrivKey(this.form,'."'$hostid'".');" />'.&mt('Yes').
'</label> </span><div id="ltisec_divchgprivkey_'.$hostid.'" style="display:none" />'.
'<span class="LC_nobreak">'.&mt('New Key').':'.
- '<input type="password" size="20" name="ltisec_privkey_'.$hostid.'" value="" autocomplete="off" />'.
+ '<input type="password" size="20" name="ltisec_privkey_'.$hostid.'" value="" autocomplete="new-password" />'.
'<label><input type="checkbox" name="visible" onclick="if (this.checked) { this.form.ltisec_privkey_'.$hostid.'.type='."'text'".' } else { this.form.ltisec_privkey_'.$hostid.'.type='."'password'".' }" />'.&mt('Visible input').'</label>'.
'</span></div>';
} else {
$extra .= '<span class="LC_nobreak">'.&mt('Encryption Key').':'.
- '<input type="password" size="20" name="ltisec_privkey_'.$hostid.'" value="" autocomplete="off" />'.
+ '<input type="password" size="20" name="ltisec_privkey_'.$hostid.'" value="" autocomplete="new-password" />'.
'<label><input type="checkbox" name="visible" onclick="if (this.checked) { this.form.ltisec_privkey_'.$hostid.'.type='."'text'".' } else { this.form.ltisec_privkey_'.$hostid.'.type='."'password'".' }" />'.&mt('Visible input').'</label>';
}
$extra .= '</fieldset>';
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1389 loncom/interface/loncommon.pm:1.1390
--- loncom/interface/loncommon.pm:1.1389 Wed Sep 28 15:13:50 2022
+++ loncom/interface/loncommon.pm Tue Oct 18 23:28:00 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1389 2022/09/28 15:13:50 raeburn Exp $
+# $Id: loncommon.pm,v 1.1390 2022/10/18 23:28:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -18692,7 +18692,7 @@
$output = '<input type="hidden" name="crypt" value="'.$md5sum.'" />'."\n".
'<span class="LC_nobreak">'.
&mt('Type in the letters/numbers shown below').' '.
- '<input type="text" size="5" name="code" value="" autocomplete="off" />'.
+ '<input type="text" size="5" name="code" value="" autocomplete="new-password" />'.
'</span><br />'.
'<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" alt="captcha" />';
last;
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.459 loncom/interface/loncreateuser.pm:1.460
--- loncom/interface/loncreateuser.pm:1.459 Thu Sep 8 01:41:13 2022
+++ loncom/interface/loncreateuser.pm Tue Oct 18 23:28:00 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.459 2022/09/08 01:41:13 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.460 2022/10/18 23:28:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2554,8 +2554,8 @@
}
$rowcount ++;
$output .= &Apache::lonhtmlcommon::row_closure(1);
- my $upassone = '<input type="password" name="upass'.$now.'" size="20" autocomplete="off" />';
- my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="20" autocomplete="off" />';
+ my $upassone = '<input type="password" name="upass'.$now.'" size="20" autocomplete="new-password" />';
+ my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="20" autocomplete="new-password" />';
$output .= &Apache::lonhtmlcommon::row_title(&mt('Password').'<b>*</b>',
'LC_pick_box_title',
'LC_oddrow_value')."\n".
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.271 loncom/homework/bridgetask.pm:1.272
--- loncom/homework/bridgetask.pm:1.271 Tue Sep 1 16:36:38 2020
+++ loncom/homework/bridgetask.pm Tue Oct 18 23:28:01 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.271 2020/09/01 16:36:38 raeburn Exp $
+# $Id: bridgetask.pm,v 1.272 2022/10/18 23:28:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3330,8 +3330,8 @@
<input type="hidden" name="validate" value="yes" />
<input type="hidden" name="submitted" value="yes" />
<table>
- <tr><td>$lt{'prus'}</td><td><input type="string" name="proctorname" value="$env{'form.proctorname'}" autocomplete="off" /></td></tr>
- <tr><td>$lt{'pasw'}</td><td><input type="password" name="proctorpassword" value="" autocomplete="off" /></td></tr>
+ <tr><td>$lt{'prus'}</td><td><input type="string" name="proctorname" value="$env{'form.proctorname'}" autocomplete="new-password" /></td></tr>
+ <tr><td>$lt{'pasw'}</td><td><input type="password" name="proctorpassword" value="" autocomplete="new-password" /></td></tr>
<tr><td>$lt{'prdo'}</td><td><input type="string" name="proctordomain" value="$env{'form.proctordomain'}" autocomplete="off" /></td></tr>
</table>
<input type="submit" name="checkoutbutton" value="$lt{'vali'}" /><br />
More information about the LON-CAPA-cvs
mailing list