lfield
0a833a34a5
Fix retire,abort and expire batch
...
Fix for issue #2793
2018-11-02 10:07:39 +01:00
Peppernrino
95070c01a3
Image File Compression
...
Ran a series of lossless compression algorithms to make the images smaller. Total reduction of ~13MB.
2018-10-29 16:27:45 -06:00
lfield
3d7281d21c
Removed extra global defs and added chmod
2018-10-26 15:29:02 +02:00
Shawn Kwang
01ed6b7cfa
ops: remove mct_delete function
2018-10-25 14:09:59 -05:00
Shawn Kwang
096fde11cf
db: explicit add of delete restrict
2018-10-25 10:19:43 -05:00
Shawn Kwang
953dd4757e
ops: Removed delete functionality for consent_types.
...
Admin may not delete consent types after creation. They may still be disabled.
2018-10-25 09:40:42 -05:00
Shawn Kwang
cd409c36d8
web rpc: add consent check to get_project config
...
RPC checks if consent_type 'ENROLL' is enabled by the project. If this is true and if the terms-of-use file exists, then show the contents of the file in the XML output.
2018-10-23 11:06:55 -05:00
Shawn Kwang
c817630afa
Merge branch 'master' into sak-useroptin-dbaddconsent
...
Fixed conflicts and prepare for merge into master.
2018-10-22 10:48:46 -05:00
Shawn Kwang
7d7c187e67
ops: fixed insert statement to use all variables
2018-10-22 08:49:07 -05:00
Kevin Reed
ce48d5ed7b
Merge pull request #2760 from BOINC/dpa_cert_filename
...
Web: let projects customize their certificate
2018-10-19 17:05:53 -05:00
Kevin Reed
f57ec8d21b
Merge pull request #2661 from BOINC/cb_consolidate_recaptcha
...
Web: consolidate recaptcha integration
2018-10-19 16:27:28 -05:00
Kevin Reed
db6408485f
Merge pull request #2610 from drshawnkwang/sak_user-showhosts_default-false
...
user: set show_host default to false.
2018-10-19 16:11:54 -05:00
Kevin Reed
d384f3891a
Merge pull request #2733 from BOINC/dpa_ssl_redirect
...
web: use HTTPS for all pages if it's available
2018-10-19 11:26:07 -05:00
David Anderson
ff156b51c8
Fix bug in team_import.php
...
Also make get_versions.php work when PHP not able to do SSL
2018-10-18 16:02:56 -07:00
David Anderson
9e881e54f0
web: make list items break in forum tables.
...
For some reason they don't break by default, though normal text does.
2018-10-15 15:18:29 -07:00
David Anderson
3b9c9f9155
web: don't word-break user attributes (Project developer etc.) in forums.
2018-10-12 14:52:00 -07:00
David Anderson
1f6b7d4e9d
Web: let projects customize their certificate
...
define CERT_FILENAME in your project.inc to whatever you want;
default is "cert1.php"
2018-10-12 14:07:07 -07:00
David Anderson
e394ff67c5
web: wrap long [pre] contents in forum posts
2018-10-12 13:30:06 -07:00
lfield
237375a6b9
moved release.inc, removed branch, added link, changed git args
2018-10-09 13:06:52 +02:00
David Anderson
7fbe40a9a5
web: forums: use <nobr> only if user name length is being limited
2018-10-08 12:51:11 -07:00
David Anderson
b3ebfaea0b
web: in forum left column, put <nobr> around user info
...
otherwise e.g. the user name can get split
2018-10-08 11:25:10 -07:00
David Anderson
3d06fbf763
web: fix layout problem with forum tables
...
Forum messages are shown in a table: left column is sender info,
right column is the message.
The left column was fixed width (10em).
On very hi-res monitors people increase their font size.
This causes the "Send message" button to overflow the column.
Solution: don't use fixed width, and make the right column 100% width.
This makes the left column wide enough for its contents to fit, but no wider.
This solves the problem, but introduces a (minor) new one:
some users have extremely long user names,
and this makes the left column too wide,
not just for that post but for the whole thread.
Solution: in this particular place, if name is > 30 chars,
show only the first 30 chars followed by ellipsis.
2018-10-08 11:03:06 -07:00
CharlieFenton
0c9081d834
Merge pull request #2716 from BOINC/dpa_project_list3
...
Add project
2018-10-07 20:17:40 -07:00
David Anderson
3b7655b06f
web: don't do SSL redirect if running as command-line script
...
Note: the underlying problem is that many CLI scripts
include util_ops.inc, which includes util.inc.
This is wrong because util.inc is only web-related stuff.
Should factor out non-web stuff in util_ops_basic.inc.
2018-10-05 22:52:00 -07:00
Shawn Kwang
835a26efb5
Refactored code to move show_hosts value to a function.
2018-10-05 12:43:39 -05:00
Shawn Kwang
54958022bb
rpc: Removed min_version_number code block.
2018-10-05 12:38:21 -05:00
lfield
ad1d27fa94
Added version detection and publishing
2018-10-05 15:03:54 +02:00
David Anderson
585ea72db5
web: use HTTPS for all pages if it's available
2018-10-03 16:08:05 -07:00
Shawn Kwang
759cc3f4a8
Merge branch 'master' into sak-useroptin-dbaddconsent
2018-10-01 10:52:10 -05:00
Kevin Reed
db76bd8e30
Web: Eliminate PHP warning 'Creating default object from empty value'
2018-09-28 14:56:28 -05:00
Shawn Kwang
e37e5999a9
rpc: Add check terms-of-use file when creating account.
...
Also rewrite parts of comment in code.
2018-09-28 11:34:54 -05:00
Shawn Kwang
683c5629bc
web: Re-added line thaty was accidentally removed.
2018-09-28 11:12:51 -05:00
lfield
64edfbdeef
Added ping function
...
Added the ping function to test the job submission RPC.
2018-09-25 15:45:24 +02:00
lfield
188e7f2f55
Revert "Added ping function"
...
This reverts commit 65f3911b44
.
2018-09-25 15:36:40 +02:00
lfield
65f3911b44
Added ping function
...
Added the ping function to the API to support testing.
2018-09-25 15:31:02 +02:00
David Anderson
5da370867f
Add project
2018-09-24 18:32:24 -07:00
Christian Beer
35ae157f9e
Locale: Update localization files [skip ci]
2018-09-20 21:08:31 +02:00
Shawn Kwang
eae8e93bcd
web: add missing line, bug found by Scrutinizer.
2018-09-20 12:40:40 -05:00
Shawn Kwang
b75020f027
web: Added config.xml option to control this show_host privacy setting.
...
If enable_privacy_by_default is TRUE (1), then show_hosts will default to 0 for new users.
2018-09-20 12:05:53 -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
41b8064b32
Added long docmentation about the create_account RPC, and what may need to change in the future. No functional changes.
2018-09-17 15:23:20 -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
992ceced0d
web: Renamed database field 'protect' to 'project_specific'.
...
Boolean is inverse of what it was before.
Conflicts:
html/ops/db_update.php
2018-09-17 12:55:55 -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
e4df047685
web: Misc small fixes.
...
Added tra() function.
2018-09-17 09:50:00 -05:00
Kevin Reed
0fe7f44145
Merge pull request #2686 from BOINC/dpa_langnames
...
Add languages to language selection menu for which we have translatio…
2018-09-17 08:45:00 -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
14fad89838
db: Added SQL view to schema and db_update.php
...
This view represents the latest consent status of all users and all consent_type_ids. It is what is often needed for determining if a user ABC has consented to consent_type XYZ.
2018-09-13 10:41:16 -05:00
Shawn Kwang
9593f1848c
Fixed missing comma
2018-09-12 11:50:20 -05:00
Shawn Kwang
cbce74df7c
Merge branch 'master' into sak-useroptin-dbaddconsent
...
Prepare for merging this development branch into master.
Conflicts:
html/ops/db_update.php
2018-09-12 11:48:25 -05:00
Shawn Kwang
c4c2ae69ba
Added additional index to consent table as well as foreign_key index.
2018-09-12 11:32:40 -05:00
Vitalii Koshura
5f40dca83b
Fix English spelling of Ukrainian language string
...
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-09-10 01:47:52 +03:00
Vitalii Koshura
0b76330627
Fix language_names.inc file to include more correct spelling of Ukrainian language
...
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-09-10 01:36:14 +03:00
David Anderson
31dfc8a098
Add languages to language selection menu for which we have translation files
...
but which, for some reason, were missing from the list (?).
Namely: Azerbaijani, Basque, Italian, Norwegian, Persian, and Ukranian.
2018-09-08 23:05:16 -07:00
Kevin Reed
436409a40b
server: Replace host index on userid with one based on userid and host_cpid
2018-09-07 10:10:03 -05:00
Shawn Kwang
20d195e54e
web: Fixed bug where disabled ENROLL consent_type still sent user to user-agreement Web form.
2018-09-06 12:48:13 -05:00
Shawn Kwang
d094f16b97
web: renamed 'protectedct' field 'protect'.
2018-08-31 13:58:54 -05:00
Shawn Kwang
74a545460a
Modified variable 'protected' in consent_type table to be 'protectedct'. 'protected' is a reserve word in some languages: C++.
2018-08-28 12:41:44 -05:00
Christian Beer
e8a26e5937
Web: consolidate recaptcha integration
...
Make sure usage of the reCaptcha wrapper is the same in all the code.
2018-08-25 20:42:55 +02:00
Kevin Reed
77f9078398
server - add indexes to host in order to make scheduler requests quick
...
for users with large number of devices (i.e at least 50k)
2018-08-23 15:10:48 -05:00
Kevin Reed
bd05d86f91
Merge pull request #2631 from BOINC/dpa_forum
...
web: if a thread or post creation fails...
2018-08-14 17:03:48 -05:00
Kevin Reed
0d5964c1f1
Merge pull request #2632 from BOINC/dpa_host_stats
...
add script to show host breakdown by OS and client version
2018-08-14 10:25:32 -05:00
David Anderson
f9095c45a3
change cache period from 1 to 7 days.
...
change "OS" to "Operating system"
2018-08-11 17:37:14 -07:00
David Anderson
2d1c815495
web: more changes related to host stats
...
- put link in standard menu under "Computing"
- put link in stats page
- change "Host" to "Computer"
2018-08-10 15:41:25 -07:00
David Anderson
1efc821b25
fix Darwin bug
2018-08-10 15:11:18 -07:00
David Anderson
37e19793f5
Improve var names and avoid divide by zero
2018-08-10 14:45:12 -07:00
David Anderson
bf3fa5f60b
server: add options purge_trickles.php
...
E.g.:
purge_trickles.php msg_from_host 2
purges trickle-ups with handled==2
Behavior with no args is unchanged.
2018-08-08 18:06:35 -07:00
David Anderson
8dabd53b8b
remote job submission: fix bug in query_batch, expand error message
2018-08-05 13:38:11 -07:00
David Anderson
3a2c78821b
add file
2018-08-02 21:12:46 -07:00
David Anderson
94fade4c09
web: if a thread or post creation fails
...
(e.g. because it has too many links) show the user an explanation.
Aside: the forum code (which was written by students a long time ago)
uses a hodge-podge of return conventions.
At some point we should standardize on 0 = success, nonzero = error code
2018-08-02 20:04:30 -07:00
David Anderson
0ecef40878
Merge pull request #2592 from BOINC/knr_translation_string_fix
...
web: Fix string that included a variable but needs to be translated s…
2018-07-20 12:17:17 -07:00
Shawn Kwang
471022d998
user: set show_host default to false.
...
When creating a user account, show_hosts flag is false by default.
Part of #2449
2018-07-18 15:08:40 -05:00
Kevin Reed
f489d7a404
Merge pull request #2606 from BOINC/dpa_delete_user2
...
web: code cleanup in delete user area
2018-07-16 14:10:50 -05:00
David Anderson
ae431f96d5
web: code cleanup in delete user area
...
- functions generally return zero on success
- improve function names
- comment formatting
See https://boinc.berkeley.edu/trac/wiki/CodingStyle
todo: fix translatable strings
2018-07-14 20:14:14 -07:00
David Anderson
c8aa75b5ef
web: ensure that login token is valid for 24 hours
2018-07-13 19:35:20 -07:00
marius
1238d7841d
minor comment fix
2018-07-11 19:01:50 +02:00
marius
6e9d228237
support old-style virtualization info
2018-07-11 18:58:31 +02:00
Kevin Reed
486a7d7d6f
web: Fix string that included a variable but needs to be translated so that it uses a placeholder
...
instead of the variable in the string
2018-07-09 13:37:39 -05:00
marius
9f942cacff
add virtualization info to host info page
2018-07-07 16:51:16 +02:00
Kevin Reed
23e737ebfe
Merge pull request #2580 from drshawnkwang/sak-fix-getprojectconfig
...
web rpc: Added global scope to master_url variable.
2018-06-29 15:49:19 -05:00
tristanolive
5bedd6bf4a
Merge pull request #2559 from BOINC/dpa_autoattach2
...
Updated registration flow
2018-06-27 18:42:15 -04:00
Shawn Kwang
9e0fd72ee4
web rpc: Added global scope to master_url variable.
2018-06-27 13:51:38 -05:00
Christian Beer
559e42771e
Locale: Update localization files [skip ci]
2018-06-24 15:33:19 +02:00
lfield
c78a174123
Merge pull request #2059 from bema-ligo/fix_beta_av_in_apps_php
...
web: fix beta app version handling in apps.php page
2018-06-21 13:20:09 +02:00
David Anderson
9dbc768621
web: let project customize "Want to help more?" list
2018-06-18 15:01:17 -07:00
Shawn Kwang
71046d4cef
web: Fixed bug found in Scrutinizer.
2018-06-15 16:07:35 -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
431d8d6542
db: Modified database definitions for consent_type table.
...
Consent_type table uses id, and consent table now refers to consent_type_id instead of name.
Additionally, added index of consent_time to consent table.
2018-06-15 14:50:48 -05:00
Shawn Kwang
cc6efacb8d
db: Reorganize database changes, and add indices to new tables.
...
Added indices to consent and consent_type tables.
Moved initial content of consent_type table to new SQL file: content.sql
Modified database.py to insert new content.sql into database. In python autocommit is turned off by default, thus a manualy commit() was added.
Updated db_update.php to match changes in db/.
2018-06-12 12:08:26 -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
f7332ccdfb
web: Add new constant for terms of use file.
...
Add new constant in project.inc, TERMSOFUSE_FILE, which is a path to the project's terms of use. This defaults to the previous location, a text file in the project's base directory.
get_project_config.php RPC modified to use this new constant, but if it is not defined, then the code will attempt to use the old path: this should be backwards-compatible for projects that do not update project.inc, but have a terms_of_use.txt file in their base directory.
HTML code modified to use this new constant.
2018-06-11 11:09:17 -05:00
Shawn Kwang
8944ba5ca7
web: minor changes found in review
2018-06-11 09:38:35 -05:00
David Anderson
91803006f9
web: home page: don't show credit as FLOPS. Might not be correct.
2018-06-10 18:57:13 -07:00
Oliver Bock
03b5960014
Web: fixed bugs in delete account feature introduced in bcd853bb4f
...
* missing include - required for delete_user()
* wrong property access syntax
2018-06-08 11:23:35 +02:00
Kevin Reed
b87d87242e
Merge pull request #2538 from BOINC/dpa_plan_class
...
Additions and fixes to plan class mechanism
2018-06-07 08:25:40 -05:00
David Anderson
226bc4f1d8
web: finish (I think) handling all the "join" scenarios sensibly.
...
The degrees of freedom include
- whether the project is vetted, has an ID an therefore can use autoattach
- whether the user already has an account
- whether the user is logged in
Account creation can now be done through the web in all cases,
rather than "new user" in the BOINC manager.
- sample index.php now directs new users to Join page,
where they create an account.
- download.php now works for both vetted and non-vetted projects;
in the non-vetted case direct them to BOINC and give instructions
- prefs.php defaults to subset global
- Add a new "welcome" page, welcome.php
New users in the autoattach case end up here.
It tells them basic stuff about what to expect and what they can do.
2018-06-07 00:02:24 -07:00
David Anderson
b3eebff65d
web: tweaks to sample home page
...
- if logged in, suggest recruiting friends and running on other devices
- move project description to a separate file
(html/project/project_description.php").
The eliminates the need to customize index.php
2018-06-06 16:32:09 -07:00
David Anderson
ad55c5efbc
web: change semantics of download.php?dev=1 so that it uses the dev version
...
if there is one, else the recommended version
2018-06-04 16:33:35 -07:00
Shawn Kwang
4e72cfad7c
web: removed commented-out code.
2018-06-04 12:50:54 -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
21b6c3eefb
web: modified team import to use check_consent_type function.
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
6482527bb5
web: refactored code to remove config option enable_record_optin_consent
...
Now the code uses the enabled flag for the consent_type ENROLL to detmerine if a terms of use
is showed to the user and whether or not consent is recorded for this general terms of use.
2018-06-04 11:26:38 -05:00
Shawn Kwang
1f70734f5f
web: modified privacy prefs code
...
Privacy prefs now loads the the consent_types found in the database table dynamically based on the enabled and privacypref flags introduced.
Removed enable_record_optin_consent config settings. Now the 'enabled' field in consent_type takes its place, one a consent_type by consent_type basis.
2018-06-04 11:26:35 -05:00
Shawn Kwang
a66705929f
web: modified manage consent type ops page to handle new fields in consent_type table.
2018-06-01 13:29:51 -05:00
Shawn Kwang
d6dd0945e9
web: Modified consent_type table with new fields.
...
Modified the consent_type table to include fields 'enabled' and 'privacypref'.
2018-06-01 13:24:10 -05:00
David Anderson
8fa692c4d6
Server: add missing code (parse cpu_model_regex in plan class spec)
2018-05-29 17:10:13 -07:00
David Anderson
56e18f11d8
- add some tra()s
2018-05-29 17:03:18 -07:00
David Anderson
d3c93cb8e0
- parse project ID correctly
2018-05-29 16:13:24 -07:00
David Anderson
0669d2b738
Web: tweaks to signup logic and forum tables
2018-05-29 00:26:26 -07:00
David Anderson
db85a4ed96
Merge pull request #2528 from BOINC/dpa_autologin3
...
web: add support for autoattach
2018-05-28 17:32:47 -07:00
Shawn Kwang
0cd3aab3a3
web: added error message when attempting to set unknown consent_type
2018-05-24 14:21:38 -05:00
Shawn Kwang
b0557ef161
web: updated preferences for stats exports to use new consent table definitions.
2018-05-24 12:03:35 -05:00
Shawn Kwang
2d4f9e4236
web: updated form to use new consent table definitions
2018-05-24 12:03:18 -05:00
Shawn Kwang
cbd1b5cc02
web: added consent table to delete functionality.
2018-05-24 12:02:43 -05:00
Shawn Kwang
35b446f243
web: Update web RPCs to use new consent defintions.
2018-05-24 12:02:31 -05:00
Shawn Kwang
4fa8a9faac
web: Updated database, consent and consent_type tables.
...
Also updated boinc_db.inc to add delete_for_use and reflect new table definitions.
2018-05-24 12:00:00 -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
David Anderson
0514a28dfc
web: add support for autoattach
...
- make download page translatable
- change sample_index.php to show different things to:
new users: show project intro, Join link
returning users: show recent credit, link to home page
- add signup page: streamlined registration, goes to download
2018-05-21 15:08:24 -07:00
David Anderson
0b9826c023
client: show error message if login token lookup fails
...
Also change lookup token RPC to work better with AMs.
But client fixes are required to make it work completely right,
which will have to wait until 7.12.
2018-05-20 13:55:40 -07:00
David Anderson
2aff54c2c0
Bug fixes for auto-attach
...
- token lookup RPC returned wrong tag
- client failed to record AM name
2018-05-18 21:12:50 -07:00
Shawn Kwang
f6437a821a
ops: If enable record consent is enabled, import team will not create the user, since there is no way for the user to give consent.
2018-05-18 10:06:28 -05:00
Shawn Kwang
284694c704
web: Fixed bug, variable restored.
2018-05-17 14:47:02 -05:00
Shawn Kwang
07607ed41d
web: Fixed bug found by Scrutinizer.
...
Removed unused code.
2018-05-17 14:30:11 -05:00
Shawn Kwang
039db259b5
Merge branch 'master' into sak-useroptin-dbaddconsent
2018-05-17 14:14:33 -05:00
Shawn Kwang
4ad801ff30
web: project privacy preferences modified to add 'consent to data export' option.
...
Added new preferences sub-class for consent table modification.
Added privacy preference form item to record user giving consent to data exports.
User's consent is recorded in the consent table.
2018-05-17 14:07:46 -05:00
Shawn Kwang
16846e4986
web: Make sure that the terms of use file exists as well as opt-in consent project config.
2018-05-17 10:50:23 -05:00
Shawn Kwang
06e162ed9d
web: added additional consent_type for data exports.
2018-05-17 10:29:13 -05:00
Kevin Reed
83ea2bc9ec
web: fixing spacing identified by scruitinizer
2018-05-17 09:58:03 -05:00
Kevin Reed
0c2b0bc88a
web: remove excess space
2018-05-17 09:46:08 -05:00
Kevin Reed
b6804ab5de
web: add mising closing parenthesis
2018-05-17 09:15:27 -05:00
Kevin Reed
ae7200490a
web: Make the delay after invalidating the autheniticator something that
...
can be customized by projects in the project.inc file
2018-05-17 08:56:45 -05:00
Kevin Reed
7ce2370160
db: change index names to not be shortened
2018-05-17 08:46:37 -05:00
Kevin Reed
f799c9c04b
web: fix issues identified by scruitinizer
2018-05-16 16:26:14 -05:00
Kevin Reed
7172942bb0
web: reorganize code so that error_page is not called in inc files
2018-05-16 16:08:19 -05:00
Kevin Reed
fdf493e3d4
web: use sensible constant values for times in code (improve
...
readability)
2018-05-16 15:43:49 -05:00
Kevin Reed
328a901ff3
db: add indexes in support delete account
2018-05-16 15:38:34 -05:00
David Anderson
99adec43ef
Additions and fixes to plan class mechanism
...
- new plan class features:
<user_id>
<infeasible_random>
<cpu_model_regex>
<min_gpu_peak_flops>, <max_gpu_peak_flops>
- apply projected_flops_scale to GPU as well as CPU apps
- web code: recognize "amd" as well as "ati"
2018-05-15 21:56:17 -07:00
Kevin Reed
21453710fd
web: don't allow a user to start the delete account process if their
...
email address has been changed in the past 7 days
2018-05-15 14:32:40 -05:00
Kevin Reed
53250e7d27
web: fix bug in change email where the reversal email was only sent to
...
the new email when not using phpmailer
2018-05-15 14:32:07 -05:00
Kevin Reed
239af2d508
Merge branch 'master' into knr_right_to_erase
...
Conflicts:
html/ops/db_update.php
2018-05-15 13:09:11 -05:00
David Anderson
02a59808b9
Merge pull request #2500 from Uplinger/email_change_notification
...
Email change notification
2018-05-15 09:42:20 -07:00
David Anderson
4f51d89bea
Merge pull request #2511 from lfield/patch-6
...
remote job submission: corrected job params retrieval
2018-05-14 10:19:15 -07:00
Laurence Field
7a75a2f577
Obtain the rsc_fpops_est from the job_params
2018-05-14 13:33:04 +02:00
lfield
0c5d41bc2b
Update submit_rpc_handler.php
2018-05-14 10:59:08 +02:00
lfield
0e49f4446d
remote job submission: corrected job params retrieval
...
Testing remote job submission using the result from PR #2416 revealed an issue with the job params retrieval.
2018-05-12 22:26:36 +02:00
Keith Uplinger
fecbfa3bd2
Modified the table definition for user table to have email_addr_change_time to be indexed per davids suggestion.
2018-05-10 09:34:39 -05:00
Kevin Reed
c03764ecb0
Merge pull request #2416 from BOINC/dpa_job_params
...
remote job submission: add optional "job params" for batchs
2018-05-09 12:57:40 -05:00
Kevin Reed
f551dd8776
web/server: when a user deletes their account (wipe), set results in progress
...
and results returned but not yet validated to "Client
Detached/Abandoned" status. Let valid results remain. In all cases set
userid and hostid to 0
2018-05-08 17:15:05 -05:00
Keith Uplinger
4168861960
Added comments for recover_email.php
2018-05-08 15:38:41 -05:00
Keith Uplinger
0d78176e1f
Change phrasing in the edit_email_form.php
2018-05-08 15:36:54 -05:00
Keith Uplinger
9cd7d63ca8
Change error code for duplicate email addresses found in am_set_info.php
2018-05-08 15:35:37 -05:00
Shawn Kwang
0a046c19b3
web: Fixed bug found by Scrutinizer.
2018-05-08 15:15:41 -05:00
Keith Uplinger
e82a6984cd
Fixed Scrutinizer issue where variables were declared blank but declared later with string value in inc/email.inc
2018-05-08 15:14:10 -05:00
Kevin Reed
fd25c43ca4
server: change create_time on host_deleted and user_deleted to double
...
from int
2018-05-08 14:43:16 -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
Keith Uplinger
8c9626fee8
Changed setting previous_email_addr to blank instead of null since that is not allowed int the default schema definition.
2018-05-08 13:37:24 -05:00
Keith Uplinger
387d59643f
Fixed problem with bad constant called for invalid email address in am_set_info.php
2018-05-08 12:11:29 -05:00
Keith Uplinger
5cead5fb55
Added check in am_set_info to return an error if the email address was changed within 7 days.
2018-05-08 12:08:31 -05:00
Keith Uplinger
94a6687009
am_set_info, if email address is the same as the user, then do nothing with changing the email address.
2018-05-08 10:33:41 -05:00
Shawn Kwang
d433bedd02
web: Fixed bugs found by Scrutinizer.
2018-05-08 10:25:13 -05:00
Keith Uplinger
69643829a4
Updated comments in a few places for email address changes.
2018-05-08 08:48:19 -05:00
Keith Uplinger
cbcbb5e34a
Merge remote-tracking branch 'upstream/keith_email' into email_change_notification
...
Conflicts:
html/user/am_set_info.php
html/user/edit_email_form.php
html/user/recover_email.php
2018-05-08 08:28:54 -05:00
Keith Uplinger
2905e50dfe
Cleaned up text within email recovery pages.
...
Also, removed excessive code and added an else statement for cleanup
2018-05-07 22:54:28 -05:00
Keith Uplinger
e874a86dab
Removed call to BoincDb::get() as it called within escape_string function.
2018-05-07 22:50:06 -05:00
David Anderson
d0fcd1e729
Various tweaks to Keith's changes.
...
Keith, call me if you want to discuss any of these.
2018-05-07 16:15:51 -07:00
Kevin Reed
4720ab77b4
web: fix issue with password hash caused by merge from master
2018-05-07 16:39:58 -05:00
Kevin Reed
ec98197f23
web: fix bug introduced during merge
2018-05-07 13:31:09 -05:00
Kevin Reed
cff14c4107
Merge branch 'master' into knr_right_to_erase
...
Conflicts:
html/inc/user_util.inc
2018-05-07 13:09:18 -05:00
Kevin Reed
f868227915
web/server: change primary key of user_deleted to userid and
...
host_deleted to hostid
2018-05-07 11:17:45 -05:00
Shawn Kwang
49599f2977
web ops: Add manage consent type page to HTML admin ops.
...
Admin may add addiational consent types to the table.
2018-05-04 18:43:52 -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
Shawn Kwang
23640e9a8a
web: Add new tables to database.
...
Add tables consent and consent_type. Projects automatically created with a pre-defined consent_type. When projects update database, pre-defined consent_type will be added as well.
2018-05-04 18:40:14 -05:00
Kevin Reed
bcd853bb4f
web: implementation of wipe account
2018-05-04 17:36:09 -05:00
Kevin Reed
ae17dfb09e
server: add user_deleted and host_deleted output files for db_dump.
...
Also modify db_dump to exclude user records whose authenticator starts
with 'deleted' or host domain names that equal 'deleted'. Those values
are set by the obfuscate delete method.
2018-05-03 15:31:42 -05:00
Kevin Reed
b7bb437aba
web: change primary key for user_deleted and host_deleted to simply be
...
id instead of userid and hostid
2018-05-03 10:38:22 -05:00
David Anderson
678f151037
Factor passwd hash logic into a function
...
... rather than having it duplicated in 3 places.
Please review https://boinc.berkeley.edu/trac/wiki/CodingStyle
2018-05-02 20:09:37 -07:00
Kevin Reed
4002f6d372
web: add logic to insert into user_deleted and host_deleted when account
...
is removed from the system. add task to remove entries from those
tables after 60 days.
2018-05-02 15:36:57 -05:00
Keith Uplinger
4aa5acbc45
Changed email.inc so that it will look for older version of PHPMailer as well as the latest 6.0.x version.
2018-05-02 13:36:16 -05:00
Keith Uplinger
7c9b4ad223
Fixed bug where new email address and change time was not being passed along to email change function
2018-05-02 09:46:34 -05:00
Keith Uplinger
93d6e0bda9
Clean up boinc_db email calls.
...
Moved edit_email_action to fix time of email change not being passed to next function.
Added check for previous email address still within 7 days for create_account.php call.
2018-05-02 09:45:40 -05:00
Keith Uplinger
7916631a85
Fix setting previous email address in AccountManager set info.
2018-05-01 22:26:03 -05:00
Keith Uplinger
aaf866ebb0
Delete token for email recovery.
2018-05-01 21:30:50 -05:00
Kevin Reed
e821de2643
web: add logic to insert into user_deleted and host_deleted when
...
deleting a user
2018-05-01 17:08:29 -05:00
Kevin Reed
762c052315
Merge pull request #2487 from BOINC/dpa_util
...
move random_string() and dtime() from util.inc to util_basic.inc
2018-05-01 14:02:44 -05:00
Kevin Reed
aaaae625a6
Merge pull request #2488 from BOINC/dpa_preview
...
web: show title in thread preview
2018-05-01 13:58:22 -05:00
Keith Uplinger
3011ccf8db
Fixed a typo in recover_email.php as well as not require the user to be logged in when trying to reset email address.
2018-05-01 12:51:27 -05:00
David Anderson
5914060d4b
web: change names of admin functions to e.g. admin_show_user()
...
to avoid conflict with non-admin versions
2018-05-01 10:47:38 -07:00
Keith Uplinger
69f78a69cd
Fix bug where I was sending it a null string to lookup_prev_email_addr
2018-05-01 12:13:39 -05:00
Keith Uplinger
4785a05784
Fixing missing ending call in function.
2018-05-01 11:11:25 -05:00
Keith Uplinger
c226ee73c2
Account manager set info and create user has a check to make sure that previuos email address isn't in the 7 day change period
2018-05-01 10:57:00 -05:00
Keith Uplinger
389ede35dc
Updated to have function to look up previous email addresses that are within 7 days of being changed
2018-05-01 10:55:57 -05:00
Kevin Reed
fd06682839
web: add table definitions for user_deleted and host_deleted
2018-04-30 17:22:36 -05:00
Kevin Reed
2e360d65f9
web: integrate changes from PR 2445 into new delete account/right to be
...
erased code. This is the implementation that will be used for the
'obfuscate' account mechanism.
2018-04-30 17:10:12 -05:00
Kevin Reed
fb85bd3439
Merge branch 'master' into knr_right_to_erase
2018-04-30 15:09:41 -05:00
Kevin Reed
65c7cfda65
web: add switch to choose which type of account delete should be
...
performed
2018-04-30 15:08:58 -05:00
Kevin Reed
1d84e9fd0a
Merge pull request #2445 from BOINC/dpa_delete_user
...
Add a mechanism allowing project admins to "delete" a user
2018-04-30 15:08:48 -05:00
Kevin Reed
da81c49e4d
web: Update calls to get and validate tokens to match changed code
2018-04-30 14:33:53 -05:00