<small><?php p($l->t('Please contact your administrator.')); ?></small>
</div>
<?php endif; ?>
+ <?php if (isset($_['internalexception']) && ($_['internalexception'])): ?>
+ <div class="warning">
+ <?php p($l->t('An internal error occured.')); ?><br>
+ <small><?php p($l->t('Please try again or contact your administrator.')); ?></small>
+ </div>
+ <?php endif; ?>
<p id="message" class="hidden">
<img class="float-spinner" src="<?php p(\OCP\Util::imagePath('core', 'loading-dark.gif'));?>"/>
<span id="messageText"></span>
OC_App::loadApps(array('prelogin'));
$error = array();
- // auth possible via apache module?
- if (OC::tryApacheAuth()) {
- $error[] = 'apacheauthfailed';
- } // remember was checked after last login
- elseif (OC::tryRememberLogin()) {
- $error[] = 'invalidcookie';
- } // logon via web form
- elseif (OC::tryFormLogin()) {
- $error[] = 'invalidpassword';
+ try {
+ // auth possible via apache module?
+ if (OC::tryApacheAuth()) {
+ $error[] = 'apacheauthfailed';
+ } // remember was checked after last login
+ elseif (OC::tryRememberLogin()) {
+ $error[] = 'invalidcookie';
+ } // logon via web form
+ elseif (OC::tryFormLogin()) {
+ $error[] = 'invalidpassword';
+ }
+ } catch (\Exception $ex) {
+ \OCP\Util::logException('handleLogin', $ex);
+ // do not disclose information. show generic error
+ $error[] = 'internalexception';
}
OC_Util::displayLoginPage(array_unique($error));