Commit Graph

2495 Commits

Author SHA1 Message Date
Shamim Rezaie
4c00766e2a MDL-59298 auth_nologin: override get_password_change_info
Let the auth_nologin class to take care of its exceptional behaviour.
2019-04-08 18:53:06 +10:00
Shamim Rezaie
206ec32890 MDL-59298 auth: Added get_password_change_info to auth plugins 2019-04-08 18:43:22 +10:00
Andrew Nicols
a6a5685999 Merge branch 'MDL-64950-master-2' of git://github.com/junpataleta/moodle 2019-03-06 13:42:24 +08:00
Jun Pataleta
313f2be603 MDL-64950 core: Handle username in a case-insensitive fashion 2019-03-06 12:45:27 +08:00
Ryan Wyllie
93dda3bfd3 MDL-63786 core: set $CFG->forceclean for logged in as sessions
Turn on the forceclean config setting when a user is logged in as a
different user. This is a precautionary measure, which forces all
user submitted content to be cleaned of JavaScript before rendering
it to the logged in as user.
2019-03-05 04:24:53 +01:00
Julien Boulen
1a549472fa MDL-62728 lang: display a warning when missing some locales on server 2019-02-15 09:53:00 +01:00
Eloy Lafuente (stronk7)
fdb3de8a05 Merge branch 'MDL-64385-master' of git://github.com/aanabit/moodle 2019-02-11 12:35:26 +01:00
David Matamoros
7a0162f17a MDL-57898 core_course: add custom fields support to courses
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 14:28:18 +01:00
Amaia Anabitarte
696bdd636d MDL-64385 user: Case insensitive comparison for email domains 2019-01-18 10:06:27 +01:00
Andrew Nicols
4b71596fc9 MDL-49399 task: Add task logging API 2019-01-16 12:14:25 +08:00
Damyon Wiese
fd25c7d5f8 MDL-64004 webservice: Do not update accesstime
Do not update the automatically update the course access time when a
course is accessed via a webservice or ajax.
2018-12-18 09:06:07 +08:00
Andrew Nicols
8cba8d1a58 MDL-64049 core: Cache prefs for current user
We were already caching these preferences when a user object is provided
to get_user_preferences, or when $USER is provided.

This changee swaps get_user_preferences to use the global USER object
when the USER->id matches the userid supplied to the function.
2018-11-19 11:23:59 +08:00
Damyon Wiese
160e77f9d0 MDL-63716 course: less user_accesstime_log() calls
We should only call this function when a user actually views a course. It is not called
automatically when a course context is validated from a webservice. It is called directly
from the core_course_view_course webservice.
2018-11-12 16:11:15 +08:00
Damyon Wiese
6dfe428363 MDL-63183 auth: Login protection
CSRF protection for the login form. The authenticate_user_login function was
extended to validate the token (in \core\session\manager) but by default it
does not perform the extra validation. Existing uses of this function from
auth plugins and features like "change password" will continue to work without
changes. New config value $CFG->disablelogintoken can bypass this check.
2018-11-07 00:14:48 +01:00
Amaia Anabitarte
5e4aaa886c MDL-62920 user: Uploading deleted user and adding to a cohort 2018-10-11 16:27:07 +02:00
Eloy Lafuente (stronk7)
19456c3956 Merge branch 'MDL-62891-master-callable_name' of git://github.com/mudrd8mz/moodle 2018-10-10 23:29:40 +02:00
Eloy Lafuente (stronk7)
bf0072e6c3 Merge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle 2018-10-09 11:35:29 +02:00
Damyon Wiese
1bf3a76a59 MDL-61378 forum: Standardize HTML output for posts
Improve the format of the HTML representing a forum post.

1. Use <article> tag to mark it correctly.
2. Use <time> tag to include the real datetime information.
3. Use <address> tag to specify who and when the post came from.
4. Use heading level tags to mark the subject of each post.
5. Properly nest reply posts within their parent <article>
6. Use a header tab for each article to split the metadata from the content.
7. Use CSS to separate links, not text content.

Because posts are now nested properly, the heading for each one refers to it's own article
and we don't need to generate arbitrary heading level tags depending on how deep the post
is nested.
2018-10-09 09:34:57 +08:00
Andrew Nicols
204abd3c97 MDL-63401 core: Do not delete the user context
As long as we have a user record, we should not delete the context which
relates to it.
2018-10-08 20:49:17 +08:00
David Mudrák
905d02f458 MDL-62891 core: Introduce new get_callable_name() function 2018-10-05 09:10:16 +02:00
Jonathan Champ
34dd57053d MDL-54035 accesslib: only modify role_capabilities in accesslib
Whenever the role_capabilities table is changed, we need to remember
to clear the cache for the role(s) being modified. This is far simpler
when all of those changes happen in a single file, i.e. accesslib.php,
allowing other parts of the application to use the public functions
without requiring knowledge of the cache internals.
2018-09-21 09:17:43 -04:00
Jonathan Champ
b2f349a433 MDL-54035 accesslib: separate role definition cache clear
Thanks to MDL-49398, we can separate the combined user session and role
definition cache clearing function into two separate functions. At the
same time, we want to identify and remove mark_dirty() calls that were
added for role definition changes but were incorrectly left behind.

Change highlights:
 - Remove unnecessary mark_dirty() calls performed after
   assign_capability(), unassign_capability(), delete_role(),
   deleted contexts, brand new contexts
 - Move role definition cache clear from the user-centric
   accesslib_clear_all_caches() to the newly created,
   role-dedicated accesslib_reset_role_cache()
2018-09-21 09:17:42 -04:00
Marina Glancy
442f12f81a MDL-62742 core: rename coursecat->core_course_category
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Andrew Nicols
4a74ab0200 MDL-36754 core_files: Add a token version of pluginfile 2018-08-14 06:57:32 +08:00
Eloy Lafuente (stronk7)
54635fdee8 Merge branch 'MDL-62750_master' of https://github.com/aanabit/moodle 2018-08-07 17:10:14 +02:00
Eloy Lafuente (stronk7)
c8bea6ae57 Merge branch 'MDL-53297-master' of git://github.com/cescobedo/moodle 2018-08-07 15:57:00 +02:00
Amaia Anabitarte
23c2316697 MDL-62750 lang: Trim langlist setting values 2018-08-06 09:38:14 +01:00
Andrew Nicols
aa75f70280 Merge branch 'MDL-59847-master' of https://github.com/snake/moodle 2018-08-02 11:39:50 +08:00
David Mudrák
6808227b1f MDL-59847 core: Fix display of hidden identity fields in user lists
Places that display list of users (such as course participants page)
with additional identifier fields now respect the user's permission to
view other users' hidden profile fields.
2018-07-27 09:55:22 +02:00
Sara Arjona
0b979a6083 MDL-41847 core_user: Add lang to login URL email for new user accounts 2018-07-27 09:01:33 +02:00
cescobedo
605354de50 MDL-53297 core_course: Final deprecation of xxx_delete_course callback 2018-07-24 23:09:47 +02:00
Andrew Nicols
affd85ce24 Merge branch 'MDL-53697-master' of git://github.com/abgreeve/moodle 2018-07-17 11:36:44 +08:00
Adrian Greeve
4bebed4011 MDL-53697 mod: Final deprecation of xxx_get_types(). 2018-07-12 10:19:09 +08:00
Eloy Lafuente (stronk7)
aedd74c610 Merge branch 'MDL-61244_master' of https://gitlab.com/marxjohnson/moodle 2018-07-02 01:42:00 +02:00
Evan Giles
53007faad1 MDL-57404 admin_settings: Allow comments in ip block
This adds the ability to to add comments to ip lists in moodle.

Currently, the configiplist textentry box does not allow the user to annotate
the IP addresses defined.  For example, I'd like to be able to define:
 192.168.1.1     # London office
 10.1.1.1        # New york office
 118.209.246.240 # My home IP

This would allow me to revisit this list after a few months, and remove
IP addresses that are no longer required - without having to manually confirm
each IP address
2018-06-16 21:08:46 +10:00
Mark Johnson
e3389c83b2 MDL-61244 caching: Allow granular purging of caches 2018-06-14 15:04:42 +01:00
David Monllao
c051057058 Merge branch 'wip-MDL-61694_Check_Password_Callback' of https://github.com/Spudley/moodle 2018-06-06 11:16:06 +02:00
Eloy Lafuente (stronk7)
2ace1fb16b Merge branch 'fix/MDL-52666' of https://github.com/mikr0/moodle 2018-06-04 17:36:19 +02:00
Marina Glancy
ce3f804683 MDL-61996 core: when loggedin always check user is complete 2018-05-09 02:55:55 +02:00
Sara Arjona
7a3707797d MDL-62240 privacy: Avoid error when path is higher than allowed
A new method shorten_filenames has been added to moodlelib.
2018-05-03 09:16:13 +02:00
Andrew Nicols
76cb5a56ea MDL-62240 file: Add includehash to shorten_filename + unit tests 2018-05-03 08:27:12 +02:00
Bas Brands
03b06309e2 MDL-62023 theme: Add bootstrap 4 classes to performance info cards 2018-04-23 11:17:33 +02:00
Simon Champion
99405aa7e2 MDL-61694 core: Add callback to allow additional password check.
The standard password validation does some basic strength checks, but
there are a number of other ways to validate a password, such as
checking that it doesn't contain common words. Adding a plugin hook
here allows us to keep up with changes in best practice in this area
as it evolves over time.
2018-04-16 13:40:54 +01:00
Charles YVANES
a0db02bf7f MDL-52666 performance: added REQUEST_METHOD in performance_info 2018-04-13 10:25:48 +02:00
Jake Dallimore
da16e3e3dc Merge branch 'MDL-61255_master' of git://github.com/markn86/moodle 2018-04-11 09:53:14 +08:00
Mark Nelson
78348dfc4e MDL-61255 core_message: added helper function to detect legacy messages 2018-04-10 17:28:52 +08:00
Mark Nelson
41bc5aa587 MDL-61255 core_message: created task to handle migration of data 2018-04-10 15:17:01 +08:00
Sara Arjona
88cb8b781d MDL-61601 cohort: Add theme support for cohorts
If enabled $CFG->allowcohortthemes, then themes can be set at the cohort level.
This will affect all users with only one cohort or more than one but with the same theme.
The default theme order will be: course, category, session, user, cohort, site.
2018-04-06 08:28:01 +02:00
Eloy Lafuente (stronk7)
9c93f67328 Merge branch 'wip-MDL-61746-master' of https://github.com/RohithSrk/moodle 2018-04-05 00:42:11 +02:00
Eloy Lafuente (stronk7)
5b123ab8d3 Merge branch 'MDL-61724-master' of git://github.com/mihailges/moodle 2018-04-03 23:38:59 +02:00