fix: password confirmation

This commit is contained in:
Andras Bacsai
2023-08-31 09:56:37 +02:00
parent 7ec560d4a2
commit 87dd819ae4
12 changed files with 21 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ class Controller extends BaseController
}
public function subscription()
{
if (!is_cloud()) {
if (!isCloud()) {
abort(404);
}
return view('subscription.index', [
@@ -37,7 +37,7 @@ class Controller extends BaseController
public function license()
{
if (!is_cloud()) {
if (!isCloud()) {
abort(404);
}
return view('settings.license', [

View File

@@ -12,7 +12,7 @@ class ServerController extends Controller
public function new_server()
{
if (!is_cloud()) {
if (!isCloud()) {
return view('server.create', [
'limit_reached' => false,
'private_keys' => PrivateKey::ownedByCurrentTeam()->get(),

View File

@@ -53,7 +53,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
}
}
public function welcome() {
if (is_cloud()) {
if (isCloud()) {
return $this->setServerType('remote');
}
$this->currentState = 'select-server-type';

View File

@@ -37,7 +37,7 @@ class Change extends Component
public function mount()
{
if (is_cloud() && !isDev()) {
if (isCloud() && !isDev()) {
$this->webhook_endpoint = config('app.url');
} else {
$this->webhook_endpoint = $this->ipv4;

View File

@@ -13,7 +13,7 @@ class IsSubscriptionValid
if (isInstanceAdmin()) {
return $next($request);
}
if (!auth()->user() || !is_cloud()) {
if (!auth()->user() || !isCloud()) {
if ($request->path() === 'subscription') {
return redirect('/');
} else {