You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/26 12:28:09 UTC
[whimsy] branch master updated: Unused
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 9c64588 Unused
9c64588 is described below
commit 9c64588e558f153ed9fb08c71de277d8ab76140f
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jun 26 13:28:01 2020 +0100
Unused
---
www/officers/coi.cgi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/officers/coi.cgi b/www/officers/coi.cgi
index 0e315af..c054519 100755
--- a/www/officers/coi.cgi
+++ b/www/officers/coi.cgi
@@ -56,7 +56,7 @@ PANEL_MESSAGE = USER_IS_REQUIRED_BUT_NOT_AFFIRMED ?
'Thank you for signing the Conflict of Interest Affirmation'
# Read the template and append the signature block
-def get_affirmed_template(user, password, name, timestamp)
+def get_affirmed_template(name, timestamp)
signature_block =
' I, the undersigned, acknowledge that I have received,
read and understood the Conflict of Interest policy;
@@ -124,7 +124,7 @@ _html do
if _.get?
if USER_IS_REQUIRED_BUT_NOT_AFFIRMED
_whimsy_panel(PANEL_MESSAGE, style: 'panel-success') do
- affirmed = get_affirmed_template($USER, $PASSWORD, USERNAME, current_timestamp)
+ affirmed = get_affirmed_template(USERNAME, current_timestamp)
affirmed.each_line do |line|
_p line
end
@@ -155,7 +155,7 @@ def emit_post(_)
# The only information in the POST is $USER and $PASSWORD
current_timestamp = DateTime.now.strftime "%Y-%m-%d %H:%M:%S"
- affirmed = get_affirmed_template($USER, $PASSWORD, USERNAME, current_timestamp)
+ affirmed = get_affirmed_template(USERNAME, current_timestamp)
user_filename = "#{USERID}.txt".untaint
# report on commit