last fix for first online
This commit is contained in:
parent
6db007fc82
commit
ebac67b81f
8 changed files with 269 additions and 258 deletions
|
|
@ -230,9 +230,12 @@ class HomeController extends Controller
|
|||
$ShoppingPayment = ShoppingPayment::where('reference', $reference)->first();
|
||||
if($ShoppingPayment->status == 'success'){
|
||||
$user = Auth::user();
|
||||
$user->wizard = 4;
|
||||
$user->save();
|
||||
return redirect(route('wizard', [4]));
|
||||
if($user->wizard < 4){
|
||||
$user->wizard = 4;
|
||||
$user->save();
|
||||
return redirect(route('wizard', [4]));
|
||||
}
|
||||
|
||||
}else{
|
||||
\Session()->flash('alert-error', "Es ist ein Fehler bei der Bestellung aufgetreten");
|
||||
return redirect(route('wizard'));
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ class PayoneController extends Controller
|
|||
"clearingtype" => "vor",
|
||||
"wallettype" => "",
|
||||
'onlinebanktransfertype' => "",
|
||||
"request" => "preauthorization",
|
||||
"request" => "authorization",
|
||||
];
|
||||
}
|
||||
//CreditCard
|
||||
|
|
|
|||
|
|
@ -81,7 +81,9 @@ class WizardController extends Controller
|
|||
$account->data_protection = now();
|
||||
$account->save();
|
||||
$user->agreement = now();
|
||||
$user->wizard = 1;
|
||||
if($user->wizard < 1){
|
||||
$user->wizard = 1;
|
||||
}
|
||||
$user->save();
|
||||
|
||||
return redirect(route('wizard', [1]));
|
||||
|
|
@ -89,7 +91,9 @@ class WizardController extends Controller
|
|||
if($step == 1){
|
||||
|
||||
if($user->isPasswort()){
|
||||
$user->wizard = 2;
|
||||
if($user->wizard < 2){
|
||||
$user->wizard = 2;
|
||||
}
|
||||
//has Passwort -> delete Code!
|
||||
$user->confirmation_code = null;
|
||||
$user->confirmation_code_to = null;
|
||||
|
|
@ -111,7 +115,9 @@ class WizardController extends Controller
|
|||
$user->fill([
|
||||
'password' => Hash::make(Input::get('password'))
|
||||
])->save();
|
||||
$user->wizard = 2;
|
||||
if($user->wizard < 2){
|
||||
$user->wizard = 2;
|
||||
}
|
||||
//has Passwort -> delete Code!
|
||||
$user->confirmation_code = null;
|
||||
$user->confirmation_code_to = null;
|
||||
|
|
@ -151,7 +157,9 @@ class WizardController extends Controller
|
|||
$data = Input::all();
|
||||
$data['same_as_billing'] = Input::get('same_as_billing') == NULL ? 0 : 1;
|
||||
$user->account->fill($data)->save();
|
||||
$user->wizard = 3;
|
||||
if($user->wizard < 3){
|
||||
$user->wizard = 3;
|
||||
}
|
||||
$user->active_date = now();
|
||||
$user->active = 1;
|
||||
$user->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue