Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki-plugin-authuffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
dokuwiki-plugin-authuffd
Commits
d32c54a1
Commit
d32c54a1
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Update form events for Dokuwiki Igor compatability
parent
8318f35c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
action.php
+15
-7
15 additions, 7 deletions
action.php
plugin.info.txt
+1
-1
1 addition, 1 deletion
plugin.info.txt
with
16 additions
and
8 deletions
action.php
+
15
−
7
View file @
d32c54a1
...
...
@@ -10,10 +10,23 @@ class action_plugin_authuffd extends DokuWiki_Action_Plugin
if
(
$conf
[
'authtype'
]
!=
'authuffd'
)
return
;
$conf
[
'profileconfirm'
]
=
false
;
/* password confirmation doesn't work with SSO users */
$controller
->
register_hook
(
'HTML_LOGINFORM_OUTPUT'
,
'BEFORE'
,
$this
,
'handle_loginform'
);
$controller
->
register_hook
(
'FORM_LOGIN_OUTPUT'
,
'BEFORE'
,
$this
,
'handle_loginform'
);
$controller
->
register_hook
(
'HTML_LOGINFORM_OUTPUT'
,
'BEFORE'
,
$this
,
'handle_loginform_old'
);
}
function
handle_loginform
(
Doku_Event
&
$event
,
$param
)
function
handle_loginform
(
Doku_Event
&
$event
)
{
$form
=
$event
->
data
;
do
{
$form
->
removeElement
(
0
);
}
while
(
$form
->
elementCount
()
>
0
);
$form
->
addFieldsetOpen
(
'Login with:'
);
$form
->
setHiddenField
(
'oauth2_login'
,
'1'
);
$form
->
addButton
(
''
,
$this
->
getConf
(
'name'
))
->
attr
(
'type'
,
'submit'
);
$form
->
addFieldsetClose
();
}
function
handle_loginform_old
(
Doku_Event
&
$event
,
$param
)
{
$event
->
data
->
_content
=
array
(
form_openfieldset
(
array
(
'_legend'
=>
'Login with:'
,
'class'
=>
'plugin_authuffd'
)),
...
...
@@ -22,9 +35,4 @@ class action_plugin_authuffd extends DokuWiki_Action_Plugin
form_closefieldset
()
);
}
function
handle_dologin
(
Doku_Event
&
$event
,
$param
)
{
msg
(
'handle_dologin'
);
}
}
This diff is collapsed.
Click to expand it.
plugin.info.txt
+
1
−
1
View file @
d32c54a1
base authuffd
author Julian Rother
email julian@cccv.de
date 2022-
0
2-
19
date 2022-
1
2-
26
name Authentication with Uffd
desc Auth plugin for login via uffd
url https://git.cccv.de/uffd/dokuwiki-plugin-authuffd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment