Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
09378e55
Commit
09378e55
authored
Mar 20, 2015
by
Stephane Glondu
Browse files
Remove unneeded forward reference
parent
f844192c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_auth.ml
View file @
09378e55
...
...
@@ -70,9 +70,6 @@ module Make (N : NAME) = struct
let
auth_instances
=
Hashtbl
.
create
10
let
auth_instance_names
=
ref
[]
(* Forward reference, will be set to eponymous template *)
let
login_choose
=
ref
(
fun
()
->
assert
false
)
let
user
=
Eliom_reference
.
eref
~
scope
None
let
do_login_using
user_domain
cont
=
...
...
@@ -105,9 +102,9 @@ module Make (N : NAME) = struct
end
let
auth_services
=
(
module
Services
:
AUTH_SERVICES
)
let
configure
xs
=
let
auth_services
=
(
module
Services
:
AUTH_SERVICES
)
in
login_choose
:=
Web_templates
.
choose
auth_services
links
;
List
.
iter
(
fun
auth_instance
->
let
{
...
...
@@ -152,7 +149,9 @@ module Make (N : NAME) = struct
|
None
->
match
!
auth_instance_names
with
|
[
name
]
->
do_login_using
name
cont
|
_
->
!
login_choose
()
>>=
Eliom_registration
.
Html5
.
send
|
_
->
Web_templates
.
choose
auth_services
links
()
>>=
Eliom_registration
.
Html5
.
send
in
match_lwt
Eliom_reference
.
get
user
with
|
Some
u
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment