v0.12.3 - Fixed reset password and email charset
This commit is contained in:
parent
66762efb8a
commit
6c4fceb697
|
@ -27,6 +27,9 @@ class Helpers
|
|||
}
|
||||
|
||||
public static function sendNewsNotification(News $news, Collection $users){
|
||||
$headers = 'Content-Transfer-Encoding: 8bit'. "\r\n".
|
||||
'Content-Type: text/html; charset="UTF-8"';
|
||||
|
||||
foreach ($users as $user) {
|
||||
$email = $user->email;
|
||||
|
||||
|
@ -35,10 +38,9 @@ class Helpers
|
|||
else
|
||||
$subject = $news->subname;
|
||||
|
||||
|
||||
$msg = "Hej " . $user->name_first . " ". $user->name_last . ".\n\nDer er kommet en ny nyhed i skolehjems appen! ";
|
||||
|
||||
mail($email, $subject, $msg);
|
||||
mail($email, $subject, $msg, $headers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<form action="{{ route("users.forgot") }}" method="post">
|
||||
@csrf
|
||||
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
||||
<input class="btn btn-dark" type="submit" value="Send reset mail">
|
||||
<input class="btn btn-dark" type="submit" value="Reset Password">
|
||||
<button class="btn btn-dark" onclick="window.location.href = '{{ route("users.login") }}';">Tilbage</button>
|
||||
</form>
|
||||
</main>
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
<form action="{{ route('users.forgot') }}" method="post">
|
||||
@csrf
|
||||
<input class="appinput" type="email" name="email" placeholder="Email" required>
|
||||
{!! session()->get('errornosuchuser') !!}
|
||||
<input class="btn btn-dark" type="submit" value="Send reset mail">
|
||||
<input class="btn btn-dark" type="submit" value="Reset Password">
|
||||
<a class="btn btn-dark text-center" onclick="window.history.back()">Tilbage</a>
|
||||
</form>
|
||||
</main>
|
||||
|
|
Loading…
Reference in New Issue