From: Cyrille Bollu Date: Tue, 31 May 2022 15:23:06 +0000 (+0200) Subject: More meaningfull message when a public authenticated share's password is wrong or... X-Git-Tag: v25.0.0beta1~319^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a790fedf091089f072557e1a52ef83ea5efed33;p=nextcloud-server.git More meaningfull message when a public authenticated share's password is wrong or has expired Signed-off-by: Cyrille Bollu --- diff --git a/core/templates/publicshareauth.php b/core/templates/publicshareauth.php index 74303ce02ea..46e43b3c218 100644 --- a/core/templates/publicshareauth.php +++ b/core/templates/publicshareauth.php @@ -17,7 +17,7 @@
t('This share is password-protected')); ?>
-
t('The password is wrong. Try again.')); ?>
+
t('The password is wrong or expired. Please try again or request a new one.')); ?>

diff --git a/tests/acceptance/features/bootstrap/PublicShareContext.php b/tests/acceptance/features/bootstrap/PublicShareContext.php index 6e4957c9ce3..d31d6541335 100644 --- a/tests/acceptance/features/bootstrap/PublicShareContext.php +++ b/tests/acceptance/features/bootstrap/PublicShareContext.php @@ -48,7 +48,7 @@ class PublicShareContext implements Context, ActorAwareInterface { * @return Locator */ public static function wrongPasswordMessage() { - return Locator::forThe()->xpath("//*[@class = 'warning' and normalize-space() = 'The password is wrong. Try again.']")-> + return Locator::forThe()->css(".warning .wrongPasswordMsg")-> describedAs("Wrong password message in Authenticate page"); }