aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/twofactorshowchallenge.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-171-3/+3
| | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix max width on 2FA pagesChristoph Wurst2020-01-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix wording log in vs. loginSascha Wiswedel2020-01-061-1/+1
| | | | | | | "log in" is used as verb, while "login" is a noun. In this case, what's supposed to be cancelled is the login process - therefore the noun must be used. Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Improve 2FA login screensChristoph Wurst2018-10-031-24/+16
| | | | | | | | | * Show icon if no provider is available * Reduce shown text if no provider available * Fix login button icons * Make backup codes button primary if the only options to log in Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Restructure and redesign two-factor auth provider selectionChristoph Wurst2018-10-011-9/+21
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly allow \OCP\Authentication\IApacheBackend to specify logout URLLukas Reschke2017-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string. This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result in `<a href="foo">`. This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 inside the navigation manager where one cannot simply inject attributes. Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112, people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects you to the IdP and properly logs you out there as well. Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but I'm not aware of any and there's simply no way to fix this properly otherwise. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use button instead of simple linksChristoph Wurst2017-03-061-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move log out and back codes link into 2fa box for better readabilityChristoph Wurst2017-03-061-12/+15
| | | | | | Fixes https://github.com/nextcloud/server/issues/2538 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a TwoFactorExceptionCornelius Kölbel2017-01-111-1/+7
| | | | | | | | | | | A Two Factor third party App may throw a TwoFactorException() with a more detailed error message in case the authentication fails. The 2FA Controller will then display the message of this Exception to the user. Working on #26593 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move away from OC_L10NRoeland Jago Douma2016-10-281-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add 2fa backup codes appChristoph Wurst2016-09-051-1/+9
| | | | | * add backup codes app unit tests * add integration tests for the backup codes app
* list 2FA providers as buttonsChristoph Wurst2016-08-271-1/+1
|
* use centered h2 for 2FA page headersChristoph Wurst2016-08-271-1/+1
|
* fix 2fa challenge page wordingChristoph Wurst2016-08-271-2/+1
|
* reorder 2fa challenge HTMLChristoph Wurst2016-08-271-7/+7
|
* Allow to cancel 2FA after loginJoas Schilling2016-06-071-0/+1
|
* Add two factor auth to coreChristoph Wurst2016-05-231-0/+19