Skip to content

Commit 0726271

Browse files
authored
Merge pull request #32371 from nextcloud/fix-31952
More meaningfull message when a public authenticated share's password is wrong or has expired.
2 parents e6177af + 4a790fe commit 0726271

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/templates/publicshareauth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
1818
<?php endif; ?>
1919
<?php if (isset($_['wrongpw'])): ?>
20-
<div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
20+
<div class="warning wrongPasswordMsg"><?php p($l->t('The password is wrong or expired. Please try again or request a new one.')); ?></div>
2121
<?php endif; ?>
2222
<p>
2323
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>

tests/acceptance/features/bootstrap/PublicShareContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static function authenticateButton() {
4848
* @return Locator
4949
*/
5050
public static function wrongPasswordMessage() {
51-
return Locator::forThe()->xpath("//*[@class = 'warning' and normalize-space() = 'The password is wrong. Try again.']")->
51+
return Locator::forThe()->css(".warning .wrongPasswordMsg")->
5252
describedAs("Wrong password message in Authenticate page");
5353
}
5454

0 commit comments

Comments
 (0)