diff --git a/pfosten/app/Http/Controllers/Auth/ForgotPasswordController.php b/pfosten/app/Http/Controllers/Auth/ForgotPasswordController.php
index 4bce8461..6a247fef 100644
--- a/pfosten/app/Http/Controllers/Auth/ForgotPasswordController.php
+++ b/pfosten/app/Http/Controllers/Auth/ForgotPasswordController.php
@@ -29,15 +29,4 @@ class ForgotPasswordController extends Controller
{
$this->middleware('guest');
}
-
- /**
- * Display the form to request a password reset link.
- *
- * @return \Illuminate\Http\Response
- */
- public function showLinkRequestForm()
- {
- return view('auth.passwords.email');
- }
-
}
diff --git a/pfosten/app/Http/Controllers/Auth/RegisterController.php b/pfosten/app/Http/Controllers/Auth/RegisterController.php
index ed8d1b77..f77265ab 100644
--- a/pfosten/app/Http/Controllers/Auth/RegisterController.php
+++ b/pfosten/app/Http/Controllers/Auth/RegisterController.php
@@ -58,7 +58,7 @@ class RegisterController extends Controller
* Create a new user instance after a valid registration.
*
* @param array $data
- * @return User
+ * @return \App\User
*/
protected function create(array $data)
{
diff --git a/pfosten/app/Http/Controllers/HomeController.php b/pfosten/app/Http/Controllers/HomeController.php
new file mode 100644
index 00000000..a3af7dd8
--- /dev/null
+++ b/pfosten/app/Http/Controllers/HomeController.php
@@ -0,0 +1,28 @@
+middleware('auth');
+ }
+
+ /**
+ * Show the application dashboard.
+ *
+ * @return \Illuminate\Http\Response
+ */
+ public function index()
+ {
+ return view('home');
+ }
+}
diff --git a/pfosten/app/Http/Controllers/RoundmailController.php b/pfosten/app/Http/Controllers/RoundmailController.php
index a256795c..14f97ded 100644
--- a/pfosten/app/Http/Controllers/RoundmailController.php
+++ b/pfosten/app/Http/Controllers/RoundmailController.php
@@ -60,11 +60,9 @@ class RoundmailController extends Controller
$missingJokerMailList=array();
$adminMailList=array();
-
$topic="";
- //TODO: umrüsten für Anzeige von Bestandsmails
- $send_date = date("d.m.Y h:i:s", time());
+ $send_date = date("d.m.Y h:i:s", time());
Log::info("Users to check for missing tipps:" . sizeof($users));
foreach($users as $user) {
@@ -120,7 +118,7 @@ class RoundmailController extends Controller
- return view('roundmails.show',compact('mail_id','activeMailList','inactiveMailList','missingTippMailList','missingJokerMailList','adminMailList','send_date','user_id','topic', 'mail_message', 'recipients', 'sender_name','viewmode'));
+ return view('roundmails.show',compact('mail_id','activeMailList','inactiveMailList','missingTippMailList','missingJokerMailList','adminMailList','send_date','user_id','topic', 'mail_message', 'recipients', 'sender_name','viewmode'));
}
@@ -148,84 +146,47 @@ class RoundmailController extends Controller
}
*/
- $u = new User(['email'=>'magus@zauberturm.de','name'=>'Torsten der Schneider']);
+ $r = new RoundmailMailer();
+ $r->user_id = Auth::user()->id;
+ $r->send_date = Carbon\Carbon::now();
+ $r->recipients = request('recipients');
+ $r->topic = request('topic');
+ $r->mail_message = str_replace("\n","
", request('message'));
+ // Die hier ist nur für die DB
+ $rm = new RoundMail();
+ $rm->send_date=$r->send_date;
+ $rm->recipients=$r->recipients;
+ $rm->user_id=$r->user_id;
+ $rm->topic=$r->topic;
+ $rm->message=$r->mail_message;
+ $rm->save();
- $r = new RoundmailMailer();
- $r->user_id = Auth::user()->id;
- $r->send_date = Carbon\Carbon::now();
- $r->recipients = request('recipients');
- $r->topic = request('topic');
- $r->mail_message = str_replace("\n","
", request('message'));
+ \Mail::to(explode(",",$r->recipients))->send($r);
- // Die hier ist nur für die DB
- $rm = new RoundMail();
- $rm->send_date=$r->send_date;
- $rm->recipients=$r->recipients;
- $rm->user_id=$r->user_id;
- $rm->topic=$r->topic;
- $rm->message=$r->mail_message;
- $rm->save();
+ // TODO: refactor, loop is also used in index method.
+ // COPY/PASTE, please refactor!
+ $mails_db = Roundmail::all();
+ $mails=array();
+ foreach($mails_db as $mail_db) {
+ $fields=array();
+ $fields['id'] = $mail_db->id;
+ $fields['send_date'] = $mail_db->send_date;
+ $fields['topic'] = $mail_db->topic;
- \Mail::to(explode(",",$r->recipients))->send($r);
-
-
-
-
-
-
- // COPY/PAST, please replace !
-
-
- $user_id=Auth::user()->id;
-
- $users = DB::table('users')->where('deleted',null)->orderBy('lastname')->get();
- $active_users=array();
- $activeMailList=array();
-
-
- $inactive_users=array();
- $inactiveMailList=array();
-
- $users_with_missing_tips=array(); // $users_with_missing_tips (or jokers)
- $missingMailList=array();
-
- $adminMailList=array();
-
- $topic="";
- //TODO: umrüsten für Anzeige von Bestandsmails
- $maildate = date("d.m.Y h:i:s", time());
-
- foreach($users as $user) {
- if (User::is_season_paid($user->id)) {
- array_push($active_users,$user);
- array_push($activeMailList,$user->email);
- } else {
- array_push($inactive_users, $user);
- array_push($inactiveMailList,$user->email);
- }
-
- if (User::hasMissingJoker($user->id) || User::hasMissingTipp($user->id)) {
- array_push($users_with_missing_tips,$user);
- array_push($missingMailList,$user->email);
- }
-
- if ($user->admin) {
- array_push($adminMailList,$user->email);
- }
+ $sender = User::where('id','=',$mail_db->user_id)->first();
+ $sender_name="(Gelöschter Anwender)";
+ if ($sender) { $sender_name=$sender->name; }
+ $fields['sender'] = $sender_name;
+ array_push($mails,$fields);
}
+ $mails=array_reverse($mails);
- $activeMailList = implode(",",$activeMailList);
- $inactiveMailList = implode(",",$inactiveMailList);
- $missingMailList = implode(",",$missingMailList);
- $adminMailList = implode(",",$adminMailList);
+ return view('roundmails.index',compact('mails'));
- $round_id=-1;
- return view('roundmails.show',compact('round_id','activeMailList','inactiveMailList','missingMailList','adminMailList','maildate','user_id','topic'));
-
}
}
diff --git a/pfosten/config/app.php b/pfosten/config/app.php
index 76656969..7548ccf9 100644
--- a/pfosten/config/app.php
+++ b/pfosten/config/app.php
@@ -12,7 +12,7 @@ return [
| any other location as required by the application or its packages.
*/
- 'name' => env('APP_NAME', 'Laravel'),
+ 'name' => env('APP_NAME', 'Hoschis Tippspiel'),
/*
|--------------------------------------------------------------------------
diff --git a/pfosten/config/mail.php b/pfosten/config/mail.php
index 29cd7be7..13b67247 100644
--- a/pfosten/config/mail.php
+++ b/pfosten/config/mail.php
@@ -16,7 +16,10 @@ return [
|
*/
- 'driver' => env('MAIL_DRIVER', 'smtp'),
+ //'driver' => env('MAIL_DRIVER', 'smtp'),
+ 'driver' => env('MAIL_DRIVER', 'log'),
+
+
/*
|--------------------------------------------------------------------------
@@ -66,8 +69,8 @@ return [
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
- | the application send e-mail messages. A sensible default using the
- | transport layer security protocol should provide great security.
+| the application send e-mail messages. A sensible default using the
+| transport layer security protocol should provide great security.
|
*/
diff --git a/pfosten/public/css/album.css b/pfosten/public/css/album.css
index 1bfc46f6..5491bd3e 100644
--- a/pfosten/public/css/album.css
+++ b/pfosten/public/css/album.css
@@ -60,7 +60,7 @@ footer p {
.blink_text {
- animation:1s blinker linear infinite;
+ animation: blinker 1s linear infinite;
-webkit-animation:1s blinker linear infinite;
-moz-animation:1s blinker linear infinite;
@@ -80,7 +80,5 @@ footer p {
}
@keyframes blinker {
- 0% { opacity: 1.0; }
- 50% { opacity: 0.0; }
- 100% { opacity: 1.0; }
+ 50% { opacity: 0; }
}
\ No newline at end of file
diff --git a/pfosten/resources/lang/en/passwords.php b/pfosten/resources/lang/en/passwords.php
index e5544d20..6a2d1704 100644
--- a/pfosten/resources/lang/en/passwords.php
+++ b/pfosten/resources/lang/en/passwords.php
@@ -13,10 +13,10 @@ return [
|
*/
- 'password' => 'Passwords must be at least six characters and match the confirmation.',
- 'reset' => 'Your password has been reset!',
- 'sent' => 'We have e-mailed your password reset link!',
- 'token' => 'This password reset token is invalid.',
- 'user' => "We can't find a user with that e-mail address.",
+ 'password' => 'Das Passwort muss mind. 6 Zeichen haben und beide Passwort-Eingaben müssen übereinstimmen',
+ 'reset' => 'Dein Passwort wurde zurückgesetzt!',
+ 'sent' => 'Wir haben Dir eine Rücksetzungs-Mail zugeschickt!',
+ 'token' => 'Ungültiges Password Reset Token.',
+ 'user' => "Es gibt keinen Spieler mit dieser E-Mail Adresse",
];
diff --git a/pfosten/resources/views/auth/login.blade.php b/pfosten/resources/views/auth/login.blade.php
index 07924ce6..e0e0b580 100644
--- a/pfosten/resources/views/auth/login.blade.php
+++ b/pfosten/resources/views/auth/login.blade.php
@@ -6,7 +6,6 @@