- 17 May, 2015 1 commit
-
-
Jono Mingard authored
Email is now changed in all three tables it's stored in during both web and cli install Change-Id: I952e0cbc1d573acdacecad00a4a7eddf2251ede2
-
- 27 Mar, 2015 1 commit
-
-
Aaron Wells authored
- Cron doesn't need to run auth_setup() - Don't run cron when site is closed for upgrade - Get rid of forcelocalupgrade() option because it's no longer needed Change-Id: I1718b13337c50fadc0573d04f5b3d6b20bc842c2
-
- 17 Mar, 2015 1 commit
-
-
Robert Lyon authored
To test add to a plugin: function admin_menu_items() { } function institution_menu_items() { } function institution_staff_menu_items() { } where each has proper markup for a menu item Change-Id: I1cc0e906f08c90616b9f3111c2c630eb72650a7d Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 03 Mar, 2015 1 commit
-
-
Nigel Cunningham authored
This patch adds a JSON progress meter (I'll call it that to avoid confusion with progress bars) to the bulk uploading of users, groups and group memberships and the bulk export and import of users (LEAP), so the user can see the progress of the operation and not just the submit button changed to 'Processing..' and whatever indication their browser gives while waiting for content. The bulk export and import are minor rewrites, replacing the old iframe based progress bar and the associated multiple pages and additional template file in the case of the bulk export, and the recursive redirect-to-self of the bulk import. To accomplish the display of the progress bar during the operation, we make the PHP session be closed (read only) except when changes need to be made. This is for the most part a straightforward change in session.php as it's the only direct accessor. In other places, we replace direct accessing of the session variable ($_SESSION) with use of the session class ($SESSION) so that it can reopen the session, make the change and close the session again. There is one more aspect to all of this: with previous behaviour, multiple requests for the same session would queue, taking the session lock in turn. After this patch is applied, they can proceed in parallel, allowing greater throughput. There is no additional locking requirement because the issues are the same as those already dealt with in allowing multiple PHP threads to process requests from different sessions at the same time. I have sought to make the progress meter nice and generic, so it can be used in the other bulk imports and exports too. Paradoxically, these changes don't just make the import seem to be faster, it actually is.. at least in the case of users and groups. Times for importing 1000 users, groups and memberships, averaged over 3 runs each (Wall time, not CPU time - but the relationship is the same). Without Progress With Progress Users 166s 155s Groups 85s 78s Memberships 20s 19s Change-Id: Iec15c57db32c77994edb80c71d65591de51a95e4 Signed-off-by:
Nigel Cunningham <nigelc@catalyst-au.net>
-
- 08 Feb, 2015 1 commit
-
-
Nigel Cunningham authored
After installation or upgrade, if the user clicks on a warning about the no-reply email address and they also need to set up required fields, the URL for the no-reply email address is initially overridden by the required fields form. This patch causes us to cleanly drop back out of the required fields form code after the required fields form is successfully submitted, letting the user then see the no-reply email address form. This method of handling things will also work for any other time the required fields form hijacks a URL - after the required fields are set, the user will get the page they asked for. Change-Id: I32aecaf898d02a572a5ab7b5c18bfaefc5607e41 Signed-off-by:
Nigel Cunningham <nigelc@catalyst-au.net>
-
- 05 Feb, 2015 1 commit
-
-
Change-Id: I448b74850bb387c8d9569a3df72da3927ca691d9
-
- 03 Feb, 2015 1 commit
-
-
Aaron Wells authored
Bug 1416935 Change-Id: I7f42d4907b523dbb74c8f896f1ca3b01449a0e1a
-
- 13 Jan, 2015 1 commit
-
-
Amelia Cordwell authored
I increased the list of bad passwords for user's new passwords to be checked against using the lists, http://sharetext.org/BEM, and http://www.dragonresearchgroup.org/insight/sshpwauth-cloud.html . While this is much better than the previous list st some point it would probably be a good idea to change the way this works. Change-Id: I1ca667fdd53729e2f05eb7e3e95622a7cfef7b31
-
- 29 Dec, 2014 1 commit
-
-
Son Nguyen authored
Bug 1401324 Make sure 263 calls of the functions are valid Change-Id: I791c14969b20ea1c7dff03cc092db9ff79f37a3a Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
- 09 Dec, 2014 1 commit
-
-
Robert Lyon authored
Before, the webservices admin pages were appearing under various different menus. I've taken them and put them as a third tier under the Extensions -> Webservices menu Change-Id: I8866da25ec54ba1a98392bfde628fe5182602270 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 04 Dec, 2014 1 commit
-
-
Bug 1399464: $values param must be an array Change-Id: Ia865e42641830400fffeb3950f6cbe4fbed7ccbb Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
- 20 Nov, 2014 1 commit
-
-
Robert Lyon authored
Scenario/testing: - Create an account, say User A and logout as admin. - In one browser login (this will be the hacker user) - In another browser reset pass via forgotten pass link What should happen: User in browser two should be able to reset pass then navigate about as when normally logged in. User in browser one should be forced to login again as their user sessionid is not valid anymore. Before patch: malicious user still has access until $USER->logout_time time expires After patch: malicious user foreced to re-login straight away on next page load Change-Id: I42ad907e5ffa7c128742a159116cf20dc6cd9b8a Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 24 Sep, 2014 1 commit
-
-
- Added ability to self import and import via admin the socialprofile fields, whether the leap2a file is made with this patch or with older mahara - Note: the msn messaging profile will not import into the new system as it is obsolete Change-Id: I858acc6c71af61c689e6760991dc00f983b913ac Signed-off-by:
Gregor Anzelj <gregor.anzelj@gmail.com>
-
- 21 Aug, 2014 1 commit
-
-
Robert Lyon authored
1) When adding a user via admin/users/edit.php page 2) When self-registering Also got places where we check institution isFull() to send out an email to the institution admins to alert them of this problem. Change-Id: I70a1025651a6e093c51e99bbcbce781c72d7f890 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 19 Jun, 2014 2 commits
-
-
Seen as we already have an expiry column in the db we might as well use it. Change-Id: I4de92289edff40e26c74ff8b9e4a77cf9bd8ccf2 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
Aaron Wells authored
Bug 1331863: Now that we've add a default validate_config_options() implementation to the base Plugin class, we get a warning when saving the config for auth plugins that say yes to has_instance_config() but have not implemented the (optional) function validate_instance_config_options. This is because of backwards-compatibility code to deal with older auth plugins that were using get_config_options(), validate_config_options(), and save_config_options(), to handle instance config. We made this change in Mahara 1.5 and added a warning message then, that says to update the plugin. I think that's a long enough warning period to just go ahead and drop support for it. From now on, plugins that have instance configs, will have to implement get_instance_config_options(), validate_instance_config_options(), and save_instance_config_options(). (All the core auth plugins already do.) Change-Id: Ia135a96a6d8c36d36708a9b9a66eaef71bc788e9
-
- 16 Jun, 2014 1 commit
-
-
Valerii Kuznetsov authored
Change-Id: I5558449a0d5c4911bfaec166d185ebd1da863f1c Signed-off-by:
Valerii Kuznetsov <valerii.kuznetsov@totaralms.com>
-
- 12 Jun, 2014 2 commits
-
-
Aaron Wells authored
Bug 1323911: Now that the auth_instance table and the institution table both have a column called "id", the SQL query is ambiguous about which one it will return. Cutting the query down so that it only returns the fields actually used in the code resolves this ambiguity. Change-Id: I5242aa7bdee38af9aa0a7da308bb0d30dc700621 Signed-off-by:
Yuliya Bozhko <yuliya.bozhko@totaralms.com>
-
Aaron Wells authored
Bug 1231755 - Cleanup, documentation, and removing replicated code. - Not checking for whether the file exists. We'll just make a list of search paths and pass those through to Dwoo_Template_File, and let it determine which path has the file. - Eliminating the separate Dwoo_Template_Mahara classes for plugintypes, and moving the custom logic for how plugintypes find their template files, into the Plugin class itself. Change-Id: I877a4221323333e8e8b6c6df54062a0f8bf2b817
-
- 04 Jun, 2014 1 commit
-
-
Aaron Wells authored
As vetted in the May 2014 dev meeting http://meetbot.mahara.org/mahara-dev/2014/mahara-dev.2014-05-01-08.01.log.html Change-Id: I353ed74d69a5346fbe4e8e521e5c349dbe8dcbac
-
- 27 May, 2014 1 commit
-
-
Robert Lyon authored
- Also includes fix to show profile tagged blogpost in profile block with correct blog id Change-Id: I5b6a3b844ad98b8c4bdb3fc02ebc4ae12af32847 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 14 Apr, 2014 1 commit
-
-
Robert Lyon authored
Rather than relying on id number we rely on the fact they are an admin. Change-Id: I17f87a7b0cb4e75b5392b196a84afb4105ab3668 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 07 Apr, 2014 1 commit
-
-
Robert Lyon authored
This is a regression that has crept in during v1.8 The installation doesn't update the admin's email address from the dummy one. Change-Id: If2b74121e6799c3f2c3745802c2aa0e856b2fd69 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 25 Mar, 2014 1 commit
-
-
Son Nguyen authored
If set, this option will overwrite the institution 'Confirm registration' setting Change-Id: I28cf952c3629005d86c31354e39581e74324a26f Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
- 18 Mar, 2014 1 commit
-
-
Son Nguyen authored
(Bug 1064780) also set default values for the user's account. Change-Id: I347cb39e3ae663b23a37f81af5a48325eaedfcea Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
- 12 Mar, 2014 1 commit
-
-
Aaron Wells authored
Bug 1252098 Change-Id: I9f2386fcb69510a23f66efc3bce32697fb8c8616
-
- 07 Mar, 2014 1 commit
-
-
Aaron Wells authored
Bug 1284869 Change-Id: Ic7c116dd09b501c35df61f735063f4c187016585
-
- 09 Feb, 2014 1 commit
-
-
Jono Mingard authored
Pieforms now adds a global error message if there are any validation errors in a form, in addition to the messages beside each element. This is modified from the existing jserrormessage Change-Id: I15b9f4238ec3e5b1e6cb7fcff0514855565f0364 Signed-off-by:
Jono Mingard <jonom@catalyst.net.nz>
-
- 24 Jan, 2014 1 commit
-
-
Robert Lyon authored
Changes include: - added an institution column to the site_content table - added an 'Edit site pages' page under Admin -> Institutions that is accessibe by institution admins - added an 'institution' option to the edit site pages form - this is a hidden field if user can edit only one institution. On upgrade it updates the site_content table to give current data the institution on 'mahara' (incl. local site pages) and for each institution it replicates the data already in the db for the default site (excl. local site pages) so that every site has their own versions, which can be adjusted as one sees fit. On creation of new institution it creates the rows in site_content table but with the default strings (like what you see when you first install a mahara) but sets the sitepages column in institution table to default (mahara). On deletion of institution it removes the rows in site_content. A user on login sees the institution site page based on what institution theme they see. On logout the 'lastinstitution' cookie is set allowing for them to see institution specific site pages. The 'No institution' (mahara) site pages can only be edited through Configure site -> Edit site pages. Also allow for an institution site page to be viewed if 'institution' variable is passed to it eg terms.php?institution=testing allowing for another way to access info when logged out. Change-Id: I2ed30b63c15bf676d83eb2231f48c4ca23ce8b53 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 21 Jan, 2014 1 commit
-
-
Aaron Wells authored
This reverts commit 1cdc0486. The JSDetector class has caused three regressions so far (Bug 1270846, Bug 1261610, and Bug 1268788). Since it's been buggy and it's not actively in use anywhere in the site, I think we should revert it. Change-Id: If32d5adf8733ce3f455aab09a5d138c7707ae95d
-
- 19 Dec, 2013 1 commit
-
-
Jono Mingard authored
Changed pieforms to set a tabindex of 0 by default (rather than starting at 1 and incrementing for each successive form) Removed other explicit tabindex attributes (in login forms) Change-Id: I40ccc95d4437764742391a27ae4d89485d9921b4 Signed-off-by:
Jono Mingard <reason.koan@gmail.com>
-
- 15 Dec, 2013 1 commit
-
-
Son Nguyen authored
1. Add the begining of PHP file, call JavascriptDetector::check_javascript(); 2. Call JavascriptDetector::is_javascript_activated() or $SESSION->get('javascriptenabled') to get the current status. 3. Call JavascriptDetector::reset() when users logout. Change-Id: Ia12e1678ae2f3f74f3b8e5fb2c0bfdd20d5ae906 Signed-off-by:
Son Nguyen <son.nguyen@catalyst.net.nz>
-
- 21 Nov, 2013 1 commit
-
-
Robert Lyon authored
As the string is hardcoded in lang file and does NOT take any variables it is ok to pass into form error as unescaped. Change-Id: Ibc0b9d7ed872abb7c4ba77d3d2bb5abcde110abc Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 17 Oct, 2013 1 commit
-
-
Robert Lyon authored
Currently if there is html in an error message used by pieforms it escapes the html so the link becomes not usable. I have made a change where you can tell pieforms not to escape the error message. So instead of using: $form->set_error($field, $message); you can use: $form->set_error($field, $message, false); Where false means do not escape the message. As the terms and conditions are displayed on the page already I've updated the link to jump to the terms section Change-Id: Ia8650a9f2284fb007cbe81a4a94223f127c4f6cd Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 14 Oct, 2013 1 commit
-
-
Robert Lyon authored
- have updated copyright for the pages that had existing copyright notices (except for the lib/pieforms/ section as i'm not too sure if that needs changing as it is a different Catalyst IT product) Change-Id: I11c65ad26cb9cd856cf16b1dccbd4223ba086645 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz> Signed-off-by:
Aaron Wells <aaronw@catalyst.net.nz>
-
- 24 Sep, 2013 1 commit
-
-
Robert Lyon authored
I keep not finding it :) Change-Id: I0d3afb3b7681d455743f9ef10adf8c3df4b5e79f Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 02 Sep, 2013 1 commit
-
-
Aaron Wells authored
Bug 1160093: This adds a few new methods to the Auth class, which represents an auth instance: - is_parent_authority(): Indicates whether this auth instance is a parent authority or not - get_parent_authority(): Gets the ID of this auth instance's parent authority - needs_remote_username(): Indicates whether this auth instance needs the user to have a remote username setting (in auth_remote_user table) I've also updated the SAML and XMLRPC auth types, which are the only ones that use remote username. And I've updated create_user() to automatically populate auth_remote_user() for auth instances that use it. Note that an auth instance of ANY type will need a remote username if it's the parent to another authority (the parent feature allows a user to log in via the parent or the child auth instance; so it's quite possible for the user to have different usernames in the two of them. Currently only XMLRPC uses the parent auth feature.) Lastly, also updated the documentation of LiveUser->create_user() to indicate that it only uses the $remoteauth parameter as a boolean (which was true even before my code changes). Change-Id: I39b1b74e68cdbc9c2632b886655caaaece1bd312
-
- 15 Aug, 2013 1 commit
-
-
Aaron Wells authored
Change-Id: I874d0c10d68532944d5eec96669a8a46b0bedd9a
-
- 23 Jun, 2013 1 commit
-
-
(bug #1045563) When an user complete the required profile field, 1. Check if the email address has been taken 2. Send a validation email to this address 3. If an email has been sent, display the status message. When an user validate his/her email address 4. if it is the primary email, update the email field of the table 'usr' in DB Change-Id: Ie3f8268bee9890c7f568a399da4332bb5ab44447 Signed-off-by:
Robert Lyon <robertl@catalyst.net.nz>
-
- 17 Jan, 2013 1 commit
-
-
Ali Kaye authored
Added 'Default registration expiry lifetime' and relevant dropdown box to 'Account settings', plus adding how long the administrator has to approve registration to the email alert. Change-Id: Ic2df962730b10e6df4ccccaa539e415640f024b8 Signed-off-by:
Ali Kaye <alexandrakaye.student@wegc.school.nz>
-