mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Only allow pro trials
This commit is contained in:
parent
639a3c321a
commit
0fd39e5be0
@ -1132,7 +1132,7 @@ class AccountController extends BaseController
|
||||
$user->registered = true;
|
||||
$user->save();
|
||||
|
||||
$user->account->startTrial(PLAN_ENTERPRISE);
|
||||
$user->account->startTrial(PLAN_PRO);
|
||||
|
||||
if (Input::get('go_pro') == 'true') {
|
||||
Session::set(REQUESTED_PRO_PLAN, true);
|
||||
|
@ -189,7 +189,7 @@ Route::group([
|
||||
Route::post('users/bulk', 'UserController@bulk');
|
||||
Route::get('send_confirmation/{user_id}', 'UserController@sendConfirmation');
|
||||
Route::get('start_trial/{plan}', 'AccountController@startTrial')
|
||||
->where(['plan'=>'pro|enterprise']);
|
||||
->where(['plan'=>'pro']);
|
||||
Route::get('restore_user/{user_id}', 'UserController@restoreUser');
|
||||
Route::post('users/change_password', 'UserController@changePassword');
|
||||
Route::get('/switch_account/{user_id}', 'UserController@switchAccount');
|
||||
|
@ -382,7 +382,7 @@ class AccountRepository
|
||||
$user->last_name = $lastName;
|
||||
$user->registered = true;
|
||||
|
||||
$user->account->startTrial(PLAN_ENTERPRISE);
|
||||
$user->account->startTrial(PLAN_PRO);
|
||||
}
|
||||
|
||||
$user->oauth_provider_id = $providerId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user