David Monllao
11e60abf75
Merge branch 'MDL-53401-master' of git://github.com/lameze/moodle
2016-03-30 09:12:25 +08:00
gabrielrosset
3ce68e4f8f
MDL-53401 auth_mnet: add user created event trigger on MNET
...
Moodle does not fire user_created event while creating user via MNET.
That makes impossible to hook on user creation when user land into a host via MNET for the 1st time.
2016-03-23 08:38:29 +08:00
Cameron Ball
052141abc7
MDL-52207 upgradelib: Replace uses of Zend_Server_Reflection
...
Now that Zend has been removed we can only use native PHP reflection
methods.
2016-03-21 11:03:24 +08:00
Marina Glancy
4a89e83b80
MDL-52285 auth: use __construct() for constructors
2015-12-10 13:40:42 +08:00
Petr Skoda
f720c2c060
MDL-48282 Standardise update of user->firstaccess
2014-11-21 09:25:57 +13:00
Adrian Greeve
8bc663e85e
MDL-39888 mnet: Removal of an old sql statement invloving the mdl_log table.
2014-08-26 15:11:56 +08:00
Simey Lameze
5ad9dd5ff2
MDL-42956 auth: Fix hard-coded LIMIT clause on keepalive_client method.
2014-04-28 16:08:49 +08:00
Russell Smith
038f546777
MDL-41198 lib: Allow PHP to generate random seed on script start
...
Most srand instances are removed to allow PHP to do the work.
srand was left for group randomization due to the method used.
2013-12-18 16:45:34 +11:00
Petr Škoda
d79d5ac276
MDL-31501 rework user session architecture
...
List of changes:
* New OOP API using PHP namespace \core\session\.
* All handlers now update the sessions table consistently.
* Experimental DB session support in Oracle.
* Full support for session file handler (filesystem locking required).
* New option for alternative session directory.
* Official memcached session handler support.
* Workaround for memcached version with non-functional gc.
* Improved security - forced session id regeneration.
* Improved compatibility with recent PHP releases.
* Fixed borked CSS during install in debug mode.
* Switched to file based sessions in new installs.
* DB session setting disappears if DB does not support sessions.
* DB session setting disappears if session handler specified in config.php.
* Fast purging of sessions used in request only.
* No legacy distinction - file, database and memcached support the same functionality.
* Session handler name included in performance info.
* Fixed user_loggedin and user_loggedout event triggering.
* Other minor bugfixing and improvements.
* Fixed database session segfault if MUC disposed before $DB.
Limitations:
* Session access time is now updated right after session start.
* Support for $CFG->sessionlockloggedinonly was removed.
* First request does not update userid in sessions table.
* The timeouts may break badly if server hosting forces PHP.ini session settings.
* The session GC is a lot slower, we do not rely on external session timeouts.
* There cannot be any hooks triggered at the session write time.
* File and memcached handlers do not support session lock acquire timeouts.
* Some low level PHP session functions can not be used directly in Moodle code.
2013-09-21 13:11:56 +02:00
Marina Glancy
4cc819adf0
MDL-41436 Allow user=-1 in get_fast_modinfo()
...
Remove ref to nonexisting course.modinfo in MNET auth, use get_fast_modinfo() for user=-1 instead
2013-09-10 14:11:51 +10:00
Rajesh Taneja
bb78e249cd
MDL-39961 Events: Replace Legacy events - User
...
This change includes:
* Added user_updated event, replacing old event
* Added user_created event, replacing old event
* Added user_deleted event, replacing old event
* Added user_loggedout event, replacing old event
* Added user_enrolment_created event, replacing old event
* Added user_enrolment_deleted event, replacing old event
* Added user_enrolment_updated event, replacing old event
2013-09-02 16:10:05 +08:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Petr Škoda
60d7078adf
MDL-39387 normalise MOODLE_INTERNAL
2013-04-27 15:09:05 +02:00
Petr Škoda
a2f10958ff
MDL-39387 fix /auth phpdocs
2013-04-27 15:06:40 +02:00
Dan Poltawski
b584a35845
Revert "MDL-36838 moodle->mahara mnet SSO failure in FF17"
...
Firefox have now decided to reverse their UA change (since integration)
and this patch has some minor drawbacks.
This reverts commit 1c65f683dc0a52e47fdf68e952c832d7c63e03a0.
2012-11-30 09:23:17 +08:00
Peter Bulmer
1c65f683dc
MDL-36838 moodle->mahara mnet SSO failure in FF17
...
In MDL-36838 Firefox 17 users are unable to sso from moodle to mahara.
Firefox 17 uses a different user agent (UA) string for Moodle sites than it
does for Mahara or other sites.
This patch relaxes the check which previously required that the UA string
being presented to the SP on landing matched the UA string presented to the IP
when jumping.
Likewise, checks associated with logout calls have been relaxed
2012-11-27 16:17:43 +13:00
Rajesh Taneja
6f5bc0584e
MDL-35787 Mnet: If student role is not defined then throw error
2012-10-09 15:30:42 +08:00
Rajesh Taneja
93288f22a9
MDL-35787 Mnet: fixed php strict standards warnings
2012-10-09 14:48:53 +08:00
Ankit Agarwal
bf0f06b1be
MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method
2012-08-02 15:37:38 +08:00
Petr Skoda
4d254790c4
MDL-32628 add revision for user avatar images
...
This should finally resolve all avatar caching issues and should also help with performance.
2012-04-30 23:36:47 +02:00
David Mudrak
10df8657c1
MDL-29977 MNet does not allow to start a remote session when masquerading as another user
2011-11-04 10:02:19 +01:00
Tom Lanyon
7aa06e6ded
MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir
2011-09-10 10:35:39 +02:00
David Mudrak
a014e3bcd8
MDL-27107 auth_mnet - consider all incoming roaming users as confirmed
...
The 'confirmed' field can't be optional. If the identity provider did
not export it, the new remote user would be created with 'confirmed' set
to default zero and as such could be a subject of scheduled deletion.
2011-08-28 02:44:45 +02:00
Petr Skoda
98eaf27e3c
MDL-28280 remove obsolete unmaintained $CFG->usesid
2011-07-10 13:44:41 +02:00
David Mudrak
42ae4ff290
MNet: fixed wrong column name in SQL cleanup code
2010-11-26 09:20:16 +00:00
David Mudrak
ee4cd8f16d
Prevent MNet error message when multiple records for the user are found in mnet_session table
2010-11-26 09:20:06 +00:00
David Mudrak
35d76df31d
MDL-25367 user images are sent a received over MNet during SSO again
2010-11-26 09:19:55 +00:00
David Mudrak
4d0552e8ea
MDL-25052 Do not display 'All hosts' as the identity provider at login form
2010-11-09 15:39:07 +00:00
David Mudrak
672bbc791d
MDL-24425 mnet: fixed SQL DISTINCT from a table containing text field
2010-10-07 16:11:42 +00:00
Petr Skoda
1dffbae2da
MDL-24321 switching to stdClass in /auth/
2010-09-21 08:09:22 +00:00
Petr Skoda
5c7bc383ce
fixed phpdocs type
2010-09-17 10:44:56 +00:00
Petr Skoda
389d17f9cc
MDL-23985 removing all make_user_dir() and get_user_directories() usage
2010-08-29 09:50:36 +00:00
Petr Skoda
082ec753b5
MDL-23985 commenting out non-working code - we need to use new file api to get user pix
2010-08-29 09:45:31 +00:00
Petr Skoda
99f9f85f00
MDL-23489 auth plugins can specify own edit profile url - patch submitted by Jay Knight + tweaking change password url to use new moodle_url at the same time, it is backwards compatible, custom plugins may still use string url for now
2010-08-18 22:07:00 +00:00
David Mudrak
54f6978168
MDL-22787 MNet: Fixed remaining usage of dropped mnet_enrol_assignments table
2010-07-17 22:34:35 +00:00
David Mudrak
152a2273be
MDL-22787 MNet: Fixing regressions in auth_mnet caused by changes in enrol_mnet
...
This smells - IMHO auth_enrol should not do anything with the enrolment
related information. These two plugins seem to be tied too much...
2010-07-17 22:34:12 +00:00
David Mudrak
bf36ee9b2b
NOMDL MNet: Remote application like Mahara does not send user's lang attribute
2010-07-13 13:14:37 +00:00
David Mudrak
09c1b1a214
MDL-23220 Fixed undefined configuration value - thanks to Dan Marsden for the patch
2010-07-13 11:29:35 +00:00
David Mudrak
94cf0a1e56
MDL-23245 Fixed plugin type of auth_mnet in config_plugins table
2010-07-13 11:14:29 +00:00
David Mudrak
67c1d98de0
MDL-23037 Improved handling of the language preferred by remote users
...
Strips _utf8 suffix for remote users roaming from Moodle 1.x sites.
Checks that the preferred language is actually installed, uses the site
default otherwise.
2010-07-01 15:11:44 +00:00
Petr Skoda
df997f841f
MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
...
AMOS START
MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
MOV [enrolenddate,core],[enrolenddate,enrol_self]
CPY [welcometocourse,core],[welcometocourse,enrol_self]
CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
MOV [notenrollable,core],[notenrollable,core_enrol]
MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
MOV [coursemanager,core_admin],[coursecontact,core_admin]
MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
MOV [enrolme,core],[enrolme,core_enrol]
MOV [unenrol,core],[unenrol,core_enrol]
MOV [unenrolme,core],[unenrolme,core_enrol]
MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
MOV [enrolments,core],[enrolments,core_enrol]
MOV [enrolperiod,core],[enrolperiod,core_enrol]
MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda
6b8ad965dc
MDL-16919 we have to really use the username cleaning only when manually adding new accounts, any sync with external system needs the exact match without any cleaning!
2010-06-06 14:06:30 +00:00
Penny Leach
d234faf3a4
mnet MDL-22267 updated mnet_server_faultand mnet_server_exception string handling
...
This is so that mnet_server_fault doesn't have to call get_string (in
case of coding exception)
2010-05-01 15:53:45 +00:00
Petr Skoda
c94fc98c87
MDL-22060 fixed $a in string to match new rules
...
AMOS START
REM fixed $a[] in [sso_mnet_login_refused,auth_mnet]
AMOS END
2010-04-11 16:58:28 +00:00
Petr Skoda
4f0c2d0009
MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
2010-03-31 07:41:31 +00:00
Penny Leach
b257d7c411
mnet MDL-21278 print a list of potential idps on the login page with links
...
this adds a new contract auth plugin method (implemented as empty in the base class)
2010-02-18 01:30:13 +00:00
Penny Leach
4a3c330854
mnet MDL-21327 remove auto add remote users setting as it makes no sense
2010-02-16 03:03:30 +00:00
Penny Leach
61506902f3
mnet MDL-20660 allow admins to configure fields to be sent over mnet
2010-02-16 02:05:30 +00:00
Petr Skoda
9a9012dc8f
MDL-21590 fixed icons in navigation lib + clean up of modinfo (planned removeal of legacy use of urlencode since 1.8 - we use serialize and utf8 is ok now)
2010-02-14 20:18:10 +00:00
Penny Leach
48fb39411f
mnet MDL-21098 small fixes - ss out issue and edge case simultaneous keyswap loop
2010-02-05 03:56:22 +00:00