MDL-77382 core: fix error handling in oauth2 callback for auth'd users
commit4ce5755a63dbd2b639a5510be122ec475b865eda
authorJake Dallimore <jake@moodle.com>
Thu, 23 Feb 2023 09:33:41 +0000 (23 17:33 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 13 Mar 2023 02:48:21 +0000 (13 10:48 +0800)
treec74ea3a3fb79d0fe63ae3d35dd98fc14bb2a9166
parent033858e2491fd79c54e511f3177eca2990877ee6
MDL-77382 core: fix error handling in oauth2 callback for auth'd users

Pass the errors back to the calling code when the user is authenticated,
otherwise, fall back on the existing redirection to the login page.
admin/oauth2callback.php