projects
/
pve-access-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2636112
)
add dummy API for login page
author
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 30 Apr 2014 12:45:57 +0000
(14:45 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Wed, 30 Apr 2014 12:45:57 +0000
(14:45 +0200)
PVE/API2/AccessControl.pm
patch
|
blob
|
blame
|
history
diff --git
a/PVE/API2/AccessControl.pm
b/PVE/API2/AccessControl.pm
index 5f859197446655436e58501ca282683ddc8c2534..5e132920cdedf197728a22133a4413d3a0788ecb 100644
(file)
--- a/
PVE/API2/AccessControl.pm
+++ b/
PVE/API2/AccessControl.pm
@@
-206,6
+206,18
@@
my $compute_api_permission = sub {
return $res;
};
+__PACKAGE__->register_method ({
+ name => 'get_ticket',
+ path => 'ticket',
+ method => 'GET',
+ permissions => { user => 'world' },
+ description => "Dummy. Useful for formaters which want to priovde a login page.",
+ parameters => {
+ additionalProperties => 0,
+ },
+ returns => { type => "null" },
+ code => sub { return undef; }});
+
__PACKAGE__->register_method ({
name => 'create_ticket',
path => 'ticket',