fix new company creation

This commit is contained in:
ghostersk
2025-05-27 14:14:53 +01:00
parent c613a564ce
commit 605067180d
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -1064,7 +1064,6 @@ def create_company():
default_api_key = ApiKey(
key=ApiKey.generate_key(),
description="HO", # Changed from "Default Site" to "HO"
user_id=current_user.id,
company_id=company.id,
is_active=True
)
@@ -1719,7 +1718,6 @@ def create_company_from_manage_users():
default_api_key = ApiKey(
key=ApiKey.generate_key(),
description="HO", # Use "HO" instead of "Default Site"
user_id=current_user.id,
company_id=company.id,
is_active=True
)
+2 -2
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}">
{% block supertitle %}{% endblock %}
<title>Logon Monitor - {% block title %}{% endblock %}</title>
<title>Logon Monitor {% block title %}{% endblock %}</title>
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/custom.css') }}" rel="stylesheet">
<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.png') }}">
@@ -34,7 +34,7 @@
<a class="navbar-brand" href="{{ url_for('frontend.index') }}">
<img src="{{ url_for('static', filename='img/favicon.png') }}" style="width: 30px;">
<!-- Performance icons created by Uniconlabs - Flaticon ( www.flaticon.com/free-icons/performance) -->
Domain Logon Monitor</a>
Logon Monitor</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
+1 -1
View File
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
<div class="container mt-4">
<h1>Welcome to Domain Logon Monitoring</h1>
<h1>Welcome to Logon Monitoring</h1>
{% if current_user.is_authenticated %}
<p class="lead">Hello {{ current_user.username }}, welcome back!</p>
<div class="row mt-4">