mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-06 05:19:41 +00:00
authenticate against a hash of identifyable information from certificate instead of only serial (refs #324)
This commit is contained in:
@@ -435,17 +435,21 @@
|
||||
} else if ($pref_name == "SSL_CERT_SERIAL") {
|
||||
|
||||
print "<input dojoType=\"dijit.form.ValidationTextBox\"
|
||||
id=\"SSL_CERT_SERIAL\"
|
||||
id=\"SSL_CERT_SERIAL\" readonly=\"1\"
|
||||
name=\"$pref_name\" value=\"$value\">";
|
||||
|
||||
$cert_serial = htmlspecialchars($_SERVER["REDIRECT_SSL_CLIENT_M_SERIAL"]);
|
||||
$cert_serial = htmlspecialchars(get_ssl_certificate_id());
|
||||
|
||||
if ($cert_serial) {
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"insertSSLserial('$cert_serial')\">" .
|
||||
__('Fill automatically') . "</button>";
|
||||
__('Register') . "</button>";
|
||||
}
|
||||
|
||||
print " <button dojoType=\"dijit.form.Button\"
|
||||
onclick=\"insertSSLserial('')\">" .
|
||||
__('Clear') . "</button>";
|
||||
|
||||
} else {
|
||||
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user