fix bad manual application update url

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-02-05 16:16:10 +01:00
parent 63f0ad1044
commit 0c9faec382
5 changed files with 1 additions and 23 deletions

View File

@@ -53,7 +53,6 @@ func NewServices(
enviroment string,
certMagicConfig *certmagic.Config,
certMagicCache *certmagic.Cache,
licenseServerURL string,
filePath string,
) *Services {
common := service.Common{

View File

@@ -1,11 +0,0 @@
package data
import "github.com/phishingclub/phishingclub/build"
// GetCrmURL returns the URL for the CRM system depending on the environment
func GetCrmURL() string {
if build.Flags.Production {
return "https://user.phishing.club"
}
return "https://crm:8009"
}

View File

@@ -159,8 +159,6 @@ func main() {
db.Logger = db.Logger.LogMode(gormLogger.Silent)
atomicLogger.SetLevel(zap.InfoLevel)
}
// set license server url
licenseServer := data.GetCrmURL()
// output debug information
/*
wd, err := os.Getwd()
@@ -232,7 +230,6 @@ func main() {
buildMode,
certMagicConfig,
certMagicCache,
licenseServer,
*flagFilePath,
)
// get entra-id options and setup msal client

View File

@@ -19,13 +19,6 @@
};
let username = '';
/*
let updateURL = 'https://user.phishing.club/downloads';
if (import.meta.env.DEV) {
updateURL = 'https://localhost:8009/downloads';
}
*/
onMount(() => {
const unsub = appState.subscribe((s) => {
context = {

View File

@@ -41,7 +41,7 @@
const installUpdate = async () => {
try {
if (!isUpdateLocal) {
window.open('https://user.phishing.club/downloads', '_blank');
window.open('https://github.com/phishingclub/phishingclub/releases', '_blank');
} else {
isUpdateAlertVisible = true;
}