diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-11 14:15:03 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-20 08:53:37 +0200 |
commit | 31392c24434c8dfbe770cec93ccb3c209392334e (patch) | |
tree | b489fe7d181223b06c8c358be6922a47433ce1d8 /lib/public/AppFramework | |
parent | 366981fba6d01167c1ac38f559bd611062d8e534 (diff) | |
download | nextcloud-server-31392c24434c8dfbe770cec93ccb3c209392334e.tar.gz nextcloud-server-31392c24434c8dfbe770cec93ccb3c209392334e.zip |
Move public auth page over
Now this is in core so the basics (that 99% of the app will want to
use) looks always the same.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/AuthPublicShareController.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/public/AppFramework/AuthPublicShareController.php b/lib/public/AppFramework/AuthPublicShareController.php index 7740faa5855..a22d381e1e3 100644 --- a/lib/public/AppFramework/AuthPublicShareController.php +++ b/lib/public/AppFramework/AuthPublicShareController.php @@ -26,7 +26,6 @@ namespace OCP\AppFramework; use OCP\AppFramework\Http\RedirectResponse; use OCP\AppFramework\Http\TemplateResponse; -use OCP\Files\NotFoundException; use OCP\IRequest; use OCP\ISession; use OCP\IURLGenerator; @@ -68,14 +67,18 @@ abstract class AuthPublicShareController extends PublicShareController { * * @since 14.0.0 */ - abstract public function showAuthenticate(): TemplateResponse; + public function showAuthenticate(): TemplateResponse { + return new TemplateResponse('core', 'publicshareauth', [], 'guest'); + } /** * The template to show when authentication failed * * @since 14.0.0 */ - abstract protected function showAuthFailed(): TemplateResponse; + protected function showAuthFailed(): TemplateResponse { + return new TemplateResponse('core', 'publicshareauth', ['wrongpw' => true], 'guest'); + } /** * Verify the password |