X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Ftemplates%2FUserlogin.php;h=69266c8de3627dc0d8f6f10240e8f76c2170508e;hb=f6d0456175a8b28fd7ce7a9bb3c5302d353fa4bd;hp=2a9badf224091e7930549e8d2904c18090acec0b;hpb=cf93d76c03b99b8167f54c2a05f66657ba4c59b3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index 2a9badf224..69266c8de3 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -90,14 +90,6 @@ class UserloginTemplate extends BaseTemplate { -
+ - - haveData( 'createOrLoginHref' ) ) { ?> - data['loggedin'] ) { ?> -
- msg( 'userlogin-createanother' ); ?> + haveData( 'createOrLoginHref' ) ) { + if ( $this->data['useemail'] && $this->data['canreset'] && $this->data['resetlink'] === true ) { + echo Html::openElement( 'div', + array( + 'class' => 'mw-ui-vform-field mw-form-related-link-container', + ) + ) . + Linker::link( + SpecialPage::getTitleFor( 'PasswordReset' ), + $this->getMsg( 'userlogin-resetpassword-link' )->parse() + ) . + Html::closeElement( 'div' ); + } + if ( $this->data['loggedin'] ) { ?> + -
+ @@ -188,6 +192,7 @@ class UserloginTemplate extends BaseTemplate { haveData( 'uselang' ) ) { ?> haveData( 'token' ) ) { ?> data['cansecurelogin'] ) {?> + data['cansecurelogin'] && $this->haveData( 'fromhttp' )) {?>