mirror of https://github.com/nextcloud/server
Merge pull request #32371 from nextcloud/fix-31952
More meaningfull message when a public authenticated share's password is wrong or has expired.
This commit is contained in:
commit
0726271504
|
@ -17,7 +17,7 @@
|
||||||
<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
|
<div class="warning-info"><?php p($l->t('This share is password-protected')); ?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (isset($_['wrongpw'])): ?>
|
<?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; ?>
|
<?php endif; ?>
|
||||||
<p>
|
<p>
|
||||||
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
||||||
|
|
|
@ -48,7 +48,7 @@ class PublicShareContext implements Context, ActorAwareInterface {
|
||||||
* @return Locator
|
* @return Locator
|
||||||
*/
|
*/
|
||||||
public static function wrongPasswordMessage() {
|
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");
|
describedAs("Wrong password message in Authenticate page");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue