Merge pull request #15699 from owncloud/fix-15696-master
Fix 15696 master
This commit is contained in:
commit
f2fe9fffd9
1 changed files with 10 additions and 11 deletions
|
@ -59,30 +59,29 @@ class StatusController extends Controller {
|
|||
*/
|
||||
public function getStatus() {
|
||||
|
||||
$status = 'error';
|
||||
$message = '';
|
||||
switch( $this->session->getStatus()) {
|
||||
case Session::INIT_EXECUTED:
|
||||
$status = 'success';
|
||||
$message = (string)$this->l->t(
|
||||
'Invalid private key for Encryption App. Please update your private'
|
||||
. ' key password in your personal settings to recover access to your'
|
||||
. ' encrypted files.', array('app' => 'encryption'));
|
||||
'Invalid private key for Encryption App. Please update your private key password in your personal settings to recover access to your encrypted files.'
|
||||
);
|
||||
break;
|
||||
case Session::NOT_INITIALIZED:
|
||||
$status = 'success';
|
||||
$message = (string)$this->l->t(
|
||||
'Encryption App is enabled but your keys are not initialized,'
|
||||
. ' please log-out and log-in again', array('app' => 'encryption'));
|
||||
'Encryption App is enabled but your keys are not initialized, please log-out and log-in again'
|
||||
);
|
||||
break;
|
||||
default:
|
||||
$status = 'error';
|
||||
}
|
||||
|
||||
return new DataResponse(
|
||||
array(
|
||||
[
|
||||
'status' => $status,
|
||||
'data' => array(
|
||||
'message' => $message)
|
||||
)
|
||||
'data' => [
|
||||
'message' => $message]
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue