Skip to content

Commit

Permalink
[Auth] Fixes URLs in first-external-login.phtml and first-socialmedia…
Browse files Browse the repository at this point in the history
…-login.phtml

The URLs generated were not absolute.
  • Loading branch information
TiSiE committed May 13, 2015
1 parent a7e7c07 commit d6207b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions module/Auth/src/Auth/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ public function loginAction()
'provider' => $provider,
'login' => $login,
'password' => $password,
'link' => $this->url()->fromRoute('lang/auth', array(), array())));

));
$mail->addTo($user->info->getEmail());

$loggerId = $login . ' (' . $provider . ': ' . $externalLogin . ')';
Expand Down
2 changes: 1 addition & 1 deletion module/Auth/view/mail/first-external-login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</p>

<p>
Wir empfehlen Ihnen, nach dem ersten einloggen auf <a href="<?php echo $this->url('lang/auth', array('lang' => 'de'))?>">YAWIK Demo</a>
Wir empfehlen Ihnen, nach dem ersten einloggen auf <a href="<?php echo $this->serverUrl() . $this->url('lang/auth', array('lang' => 'de'))?>">YAWIK Demo</a>
das Passwort zu ändern. Dazu rufen Sie die Profil-Einstellungen über das Menü auf der rechten oberen Bildschirmseite auf und wählen den Punkt
"Passwort ändern".
</p>
Expand Down
2 changes: 1 addition & 1 deletion module/Auth/view/mail/first-socialmedia-login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ without social networks.</p>
Secret: <?php echo $this->password ?></p>


<p>Return to YAWIK and log in at: <?php echo $this->link ?></p>
<p>Return to YAWIK and log in at: <a href="<?php $url = $this->serverUrl() . $this->url('lang/auth', array('lang' => 'en')); echo $url; ?>"><?php echo $url ?></a></p>


<p>regards,</p>
Expand Down

0 comments on commit d6207b6

Please sign in to comment.