v2: версия 0.5.70 — отображается в /v2 и /v2/app
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ function createV2Router() {
|
||||
.logout { color: #ef5350; }
|
||||
.label { color: #888; }
|
||||
</style></head><body>
|
||||
<h2>✅ Вход выполнен</h2>
|
||||
<h2>✅ Вход выполнен <small style="color:#888">v${config.version}</small></h2>
|
||||
<p><span class="label">Email:</span> ${u.email}</p>
|
||||
<p><span class="label">clientId:</span> ${u.clientId} <span class="label">(активная компания)</span></p>
|
||||
<p><span class="label">Компания:</span> ${u.companyName}</p>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
// ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
module.exports = {
|
||||
version: '0.5.69',
|
||||
// Keycloak — ТЕСТОВЫЙ (наш на ВМ). Заменить на production через V2_KC_BASE_URL.
|
||||
kcBaseUrl: process.env.V2_KC_BASE_URL || 'https://italo.kube5s.ru/realms/ipwhitelist',
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
const express = require('express');
|
||||
const q = require('../db/queries');
|
||||
const config = require('../config');
|
||||
const { validate } = require('../validators');
|
||||
|
||||
function createCrudRouter() {
|
||||
@@ -171,7 +172,7 @@ function renderApp({ entries, company, limit, used, allCompanies, clId, user, in
|
||||
</style></head><body>
|
||||
|
||||
<div class="bar">
|
||||
<span><strong>V2 IP WhiteList</strong></span>
|
||||
<span><strong>V2 IP WhiteList</strong> <small>v${config.version}</small></span>
|
||||
<span>${user.email} | ${user.fio || ''} ${user.isAdmin ? '| ADMIN' : ''}</span>
|
||||
<span>
|
||||
<form method="GET" action="/v2/app" style="display:inline">
|
||||
|
||||
Reference in New Issue
Block a user