Commit Graph

19 Commits

Author SHA1 Message Date
David Anderson 4287aeb8cd job submission: add ability to view mem/disk usage stats for a batch.
It's useful to see the stats (mean, max) of memory and disk usage,
e.g. so that you can set the appropriate bounds for future jobs.
In the case of universal VM apps (e.g. nanoHUB@home)
the natural place to put this is at the batch level;
jobs in a a batch use the same tool.

Also: add a general function for printing sizes in MB and GB,
and move a function from util.inc to the appropriate file.
2019-06-26 16:30:20 -07:00
Kevin Reed 8993d2df76 web - fix if/else formatting in termsofuse code 2019-06-20 10:10:54 -05:00
Shawn Kwang cb3683515d web: Added token authentication to form.
Adds token authentication to user_agreetotermsofuse_action, in order to prevent unauthorized use.
2018-12-04 14:47:35 -06:00
Shawn Kwang 54958022bb rpc: Removed min_version_number code block. 2018-10-05 12:38:21 -05:00
Shawn Kwang a8e1862e6f rpc: Modified create_account RPC.
RPC checks the version of BOINC client and if the client is newer than 6.10.0, then assume the user has seen the terms-of-use dialog, and thus consented to the TOU.
2018-09-18 11:47:56 -05:00
Shawn Kwang 1381601c6e web: Replaced login_action code with a function that interecepts the login process to present a terms-of-use if necessary. 2018-09-17 15:12:34 -05:00
Shawn Kwang a02bc83678 web: Modified lookup to also search fo consent_flag.
Query for what is needed to determine if a user has consented to a policy.
2018-09-17 12:55:55 -05:00
Shawn Kwang 90bdd9196a web: defined CONSENT_TYPE_ENROLL and replaced string 'ENROLL' with this define.
No changes to functionally, only a new define().
2018-09-17 12:55:55 -05:00
Shawn Kwang 4cb30b1a8b Removed unnecessary primary_key from insert statements. 2018-09-17 12:55:50 -05:00
Shawn Kwang 7bf7d5c0a0 web: User SQL View latest_consent to obtain consent information for users.
Web site operations can now use latest_consent View.
2018-09-13 11:54:04 -05:00
Shawn Kwang ffdc327509 web: Web code modified to work with new database table definitions.
Modified web code to use consent_type_id in place of consent_name in various places.
RPCs also modified to use the new definitions.
2018-06-15 15:38:39 -05:00
Shawn Kwang 8e023cc665 web: Replaced SESSION with temporary cookies.
Temporary cookies hold the userid information so the subsequent form can set the consent.
2018-06-11 11:43:16 -05:00
Shawn Kwang 8944ba5ca7 web: minor changes found in review 2018-06-11 09:38:35 -05:00
Shawn Kwang f172822a94 web: Exiting users agree to terms of use when logging in.
Renamed 'optin consent' to 'agree to terms of use'. New config.xml variable name.
Decoupled new user agree to terms of use from existing users. If there is a ENROLL terms of use, and the project has enabled the 'enable_login_mustagree_termsofuse' boolean, then existing users must agree to the terms of use when the login, and this is recorded in the consent table.
2018-06-04 11:26:43 -05:00
Shawn Kwang a96ed6b4be web: modified RPCs to use new consent_type table definitions.
Added check consent type function for RPCs and Web forms.
2018-06-04 11:26:39 -05:00
Shawn Kwang 35b446f243 web: Update web RPCs to use new consent defintions. 2018-05-24 12:02:31 -05:00
Shawn Kwang a8d7be5854 web: Misc minor changes.
Changed name of consent function to be more generic.
Added translation of ops page text.
2018-05-22 15:40:18 -05:00
Shawn Kwang 6fa9a01ea6 web: Add an opt-in consent form to login workflow.
When a user logs in, and they have not yet consented, the user is presented with a form to consent to the Terms of Use. This adds or modifies records in the consent table.
Supported logins are: web form, authenticator, email_link, and ldap.
2018-05-08 14:36:05 -05:00
Shawn Kwang 0537feba0c web: Add functionality of consent to Web site and RPCs.
create_account RPC modified to record a user's consent.
am_set_info RPC modified to allow for modification of user's consent.
Account registration on Web site modified to show terms_of_use.txt file and record user's consent.
2018-05-04 18:42:05 -05:00