Commit graph

178 commits

Author SHA1 Message Date
Dmitrii Metelkin
1f8860f189 Add more tests 2019-11-17 00:19:48 +11:00
Dmitrii Metelkin
75f5fa7e15 Simplify code 2019-11-17 00:19:36 +11:00
Dmitrii Metelkin
1be8efccb3 Logged out user if key is invalid 2019-11-16 23:59:16 +11:00
Dmitrii Metelkin
ac66abbd21 Fix error when page url is not set 2019-11-16 23:20:22 +11:00
Dmitrii Metelkin
4a18dea34f Add test to cover fix when session is already exists 2019-11-16 23:19:14 +11:00
Dmitrii Metelkin
3733a74f05 Fix unit tests in later moodle versions 2019-11-16 22:47:18 +11:00
Jorge Humberto Sanchez Jimenez
e847890304 Fixes when session already exist
When loggin in, if session already exist, the login is attached to the
old user/session.
Logout if current session userid doesn't match with loginurl key userid
and retry the login.
2019-11-16 22:10:48 +11:00
Dmitrii Metelkin
291f2a04c4 Fix travis file 2019-11-16 22:07:34 +11:00
Dmitrii Metelkin
112aeb25d2 Fix copy-paste issue in upgrade script 2018-05-02 10:40:24 +10:00
Dmitrii Metelkin
15cfe70041 Fix broken SQL 2018-05-02 10:30:07 +10:00
Dmitrii Metelkin
8f92919434 Add upgrade script to fix all previously created users 2018-05-02 10:18:21 +10:00
Dmitrii Metelkin
e6aeab9e85 Properly test confirmation 2018-05-02 10:06:36 +10:00
Dmitrii Metelkin
c82eb06aea
Merge pull request #29 from SAHellauer/MOODLE_33PLUS
Added confirmed equal 1 to user creation
2018-05-02 10:04:33 +10:00
Stephen Hellauer
9d59b407e7
Test function check for correct confirmation 2018-05-01 07:44:36 -05:00
Stephen Hellauer
8127ab82a9
Added confirmed equal 1 to user creation 2018-04-27 12:59:34 -05:00
Dmitrii Metelkin
79b6b751b0 Bump version 2018-03-28 11:56:37 +11:00
Dmitrii Metelkin
f8a1df93cf Update README.md 2018-03-28 11:49:51 +11:00
Dmitrii Metelkin
7e39fab83f Fix failing return parameters validation 2018-03-28 11:34:23 +11:00
Dmitrii Metelkin
9730daaba1 Remove whitespace 2018-01-29 11:52:04 +11:00
Dmitrii Metelkin
b8445715b9
Merge pull request #23 from andrewhancox/master_33
Master 33
2018-01-29 11:50:42 +11:00
Dmitrii Metelkin
bf33d00fbe Simplify travis file 2018-01-29 11:40:20 +11:00
Dmitrii Metelkin
f04cf2afc3 Update version file 2018-01-29 11:39:55 +11:00
Dmitrii Metelkin
0119c5b1b0 Add missing MOODLE_INTERNAL constants 2018-01-29 11:17:54 +11:00
Dmitrii Metelkin
c7e17febb5
Merge pull request #22 from andrewhancox/master
Prevent error where user is already logged in
2018-01-29 10:11:18 +11:00
Andrew Hancox
4afc2055be Move settings into settings.php 2018-01-23 15:29:50 +00:00
Andrew Hancox
bb426a5adb Prevent error where user is already logged in 2018-01-22 22:16:36 +00:00
Dmitrii Metelkin
747b4d301c
Merge pull request #20 from andrewhancox/master
Bug in whitelisting logic
2017-12-13 09:10:15 +11:00
Andrew Hancox
eea400f30f Reordered key checks 2017-12-12 11:53:21 +00:00
Andrew Hancox
55b614e284 Remove calls to deprecated and removed function 2017-11-18 14:11:03 +00:00
Andrew Hancox
91c4be7df4 Fix issue matching IPs when whitelisting is enabled 2017-11-18 14:10:45 +00:00
Dmitrii Metelkin
f0f988e9d3 Merge pull request #19 from catalyst/fix-ci-test
Exclude testing moodle master branch against PHP 5.6
2017-10-23 15:34:08 +11:00
Dmitrii Metelkin
19fb0044f0 Merge pull request #18 from andrewhancox/master
Add ability to white list IP addresses to ignore iprestrictions
2017-10-23 15:33:53 +11:00
Pat Kira
b71d9ecea6 Exclude testing moodle master branch against PHP 5.6 2017-10-23 13:28:17 +11:00
Andrew Hancox
c2152c1c84 Refactored to make unit tests more robust 2017-10-20 18:04:56 +01:00
Andrew Hancox
833a25daf3 Fixed issues from code review 2017-10-03 18:03:02 +01:00
Andrew Hancox
5171723d0e Fix pre-existing travis CI failures 2017-10-03 11:40:36 +01:00
Andrew Hancox
bded162058 Add ability to white list IP addresses to ignore iprestrictions 2017-10-03 11:05:40 +01:00
Dmitrii Metelkin
5a115b42f1 Merge pull request #17 from imrobinized/imrobinized-patch-1
Add PHP syntax highlighting
2017-07-12 13:01:41 +10:00
Robin
48d7011876 Revert changes on line break types 2017-07-12 10:55:35 +08:00
Robin
6964749b0b Add PHP syntax highlighting 2017-07-12 10:48:40 +08:00
Daniel Thee Roperto
d6d00e28ea Version bump. 2017-05-15 12:05:20 +10:00
Daniel Thee Roperto
c335cee4f9 Merge pull request #14 from catalyst/issue13-moodle32
Issue #13 - Updated Travis and unit test.
2017-05-15 12:04:04 +10:00
Daniel Thee Roperto
596f2d72aa Issue #13 - Updated Travis and unit test.
- Added Moodle 32 and Moodle 33 to Travis.
- Updated Travis to not test mysql in every scenario
- Updated Travis to use Postgres 9.3 (required by Moodle 33+)
- Updated test_that_user_logged_in_and_redirected as newer Moodle defaults to different URL.
2017-05-15 11:52:08 +10:00
Dmitrii Metelkin
c12c5214a4 Merge pull request #9 from andrewhancox/master
Add user provisioning and test client code. Close #9
2017-04-10 10:45:19 +10:00
Andrew Hancox
9ec87b0e87 Removed dependency on Moodle 31 2017-04-03 09:32:35 +01:00
Andrew Hancox
c1624f7d05 Fixed codechecker issues 2017-04-03 09:15:38 +01:00
Andrew Hancox
805e22e8e0 Make additional user information optional unless creating a new user. 2017-03-31 13:37:46 +01:00
Andrew Hancox
d6c957c298 Added a test client code to README. 2017-03-31 13:14:54 +01:00
Andrew Hancox
b08d113e0c Add user provisioning. 2017-03-31 11:55:52 +01:00
Brendan Heywood
1632d8830a Update README.md 2016-10-10 15:26:01 +11:00