Skip to content

Commit

Permalink
Merge pull request #32683 from nextcloud/backport/32371/stable24
Browse files Browse the repository at this point in the history
[stable24] More meaningfull message when a public authenticated share's password is wrong or has expired.
  • Loading branch information
blizzz authored Jun 10, 2022
2 parents 0cbfae6 + bef2960 commit e2c213a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/templates/publicshareauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
<?php endif; ?>
<?php if (isset($_['wrongpw'])): ?>
<div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
<div class="warning wrongPasswordMsg"><?php p($l->t('The password is wrong or expired. Please try again or request a new one.')); ?></div>
<?php endif; ?>
<p>
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/bootstrap/PublicShareContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function authenticateButton() {
* @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");
}

Expand Down

0 comments on commit e2c213a

Please sign in to comment.