diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-03 11:48:02 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-03 19:05:20 +0200 |
commit | 78273cb1e61870782d36e7b045abdfcee0cb647b (patch) | |
tree | a7d3ba3eddf649923743648d7faf2e13456b3d3c /core/routes.php | |
parent | 893d2daeced67bddb2a277f8d126b3b27d78fcb0 (diff) | |
download | nextcloud-server-78273cb1e61870782d36e7b045abdfcee0cb647b.tar.gz nextcloud-server-78273cb1e61870782d36e7b045abdfcee0cb647b.zip |
Add an endppoint for clients to request an app password
Now that we allow enforcing 2 factor auth it make sense if we also allow
and endpoint where the clients can in the background fetch an
apppassword if they were configured before the login flow was present.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/routes.php')
-rw-r--r-- | core/routes.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php index 4ac51dc2364..f3884a765a2 100644 --- a/core/routes.php +++ b/core/routes.php @@ -81,6 +81,7 @@ $application->registerRoutes($this, [ ['root' => '/core', 'name' => 'AutoComplete#get', 'url' => '/autocomplete/get', 'verb' => 'GET'], ['root' => '/core', 'name' => 'WhatsNew#get', 'url' => '/whatsnew', 'verb' => 'GET'], ['root' => '/core', 'name' => 'WhatsNew#dismiss', 'url' => '/whatsnew', 'verb' => 'POST'], + ['root' => '/core', 'name' => 'AppPassword#getAppPassword', 'url' => '/getapppassword', 'verb' => 'GET'], ], ]); |