diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-11 15:15:03 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-20 09:53:37 +0300 |
commit | 31392c24434c8dfbe770cec93ccb3c209392334e (patch) | |
tree | b489fe7d181223b06c8c358be6922a47433ce1d8 /lib | |
parent | 366981fba6d01167c1ac38f559bd611062d8e534 (diff) |
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')
-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 |