Explorar el Código

Merge pull request #35820 from nextcloud/enh/noid/wording-new-app-password-activity

Avoid using the word 'password' in the APP_TOKEN_CREATED activity
tags/v26.0.0beta1
Julien Veyssier hace 1 año
padre
commit
67845dd37e
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      apps/settings/lib/Activity/Provider.php

+ 2
- 2
apps/settings/lib/Activity/Provider.php Ver fichero

@@ -112,9 +112,9 @@ class Provider implements IProvider {
$subject = $this->l->t('Your email address was changed by an administrator');
} elseif ($event->getSubject() === self::APP_TOKEN_CREATED) {
if ($event->getAffectedUser() === $event->getAuthor()) {
$subject = $this->l->t('You created app password "{token}"');
$subject = $this->l->t('You created an app password for a session named "{token}"');
} else {
$subject = $this->l->t('An administrator created app password "{token}"');
$subject = $this->l->t('An administrator created an app password for a session named "{token}"');
}
} elseif ($event->getSubject() === self::APP_TOKEN_DELETED) {
$subject = $this->l->t('You deleted app password "{token}"');

Cargando…
Cancelar
Guardar