Erster Stand
This commit is contained in:
@@ -151,8 +151,8 @@ class UserController extends Controller
|
||||
$validator = \Validator::make($request->all(), [
|
||||
'username' => 'required|unique:users|min:3|max:25|alpha_num',
|
||||
'email' => 'required|email|unique:users|confirmed',
|
||||
'password' => 'required|min:128|confirmed',
|
||||
'captcha' => 'required|captcha'
|
||||
// 'password' => 'required|min:6|confirmed',
|
||||
// 'captcha' => 'required|captcha'
|
||||
]);
|
||||
|
||||
if($validator->fails()) {
|
||||
@@ -179,12 +179,12 @@ class UserController extends Controller
|
||||
// Send Mail
|
||||
|
||||
\Mail::queue('emails.activation', $data, function($message) use ($user) {
|
||||
$message->to($user->email, $user->username)->subject('Welcome to w0bm. Activate your account');
|
||||
$message->to($user->email, $user->username)->subject('Welcome to .-.- . Activate your account');
|
||||
});
|
||||
|
||||
return redirect('/login')->with('info', 'Congratulations! Your Account was successful created, please verify your email');
|
||||
return view('success')->with('info', 'Congratulations! Your Account was successful created, please verify your email');
|
||||
} else {
|
||||
return redirect()->back()->with('error', 'Account could not be created')->withInput($request->except(['password', 'password_confirmation']));
|
||||
return view()->with('error', 'Account could not be created')->withInput($request->except(['password', 'password_confirmation']));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -460,4 +460,9 @@ class UserController extends Controller
|
||||
//return Response::create("success mothafukka, you can now go back and fap your dick", 200);
|
||||
return redirect()->back()->with('success', 'Jesus Scriptus is with you' );
|
||||
}
|
||||
public function settings(Request $request) {
|
||||
return view('settings', [
|
||||
'fuser' => 'pimmel',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 847 B |
@@ -130,13 +130,12 @@ Route::group(["middleware" => "theme"], function() {
|
||||
Route::get('upload', 'VideoController@create')->middleware('auth');
|
||||
Route::get('categories', 'CategoryController@index');
|
||||
Route::get('webm', function() { return view('webm'); })->middleware('auth');
|
||||
Route::get('settings', function() { return view('settings'); })->middleware('auth');
|
||||
Route::get('settings', 'UserController@settings');
|
||||
Route::get('matrix', function() { return view('matrix'); })->middleware('auth');
|
||||
Route::get('git', function() { return view('git'); });
|
||||
#Route::get('about', function() { return view('about'); })->middleware('auth');
|
||||
Route::get('about', 'aboutController@index');
|
||||
Route::get('irc', function() { return view('irc'); });
|
||||
Route::get('rules', 'rulezController@index');
|
||||
Route::get('rules', function() { return view('rulez'); });
|
||||
#Route::get('tos', function() { return view('tos'); });
|
||||
#Route::get('rulez', 'rulezController@index')->middleware('auth');
|
||||
Route::get('todo', function() { return view('todo'); })->middleware('auth');
|
||||
|
Reference in New Issue
Block a user