feat(5.20): US-007 validare login RAR pe env-ul setului de credentiale
Login de validare loveste base_url_pentru_env(env) (NU ancora globala); endpoint POST /cont/test-rar-creds + card in _integrare.html; mesaj distinct TESTARE vs PRODUCTIE la 401 incrucisat (confirmat live). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Formular test conexiune #}
|
||||
{# Formular test conexiune cheie API #}
|
||||
<div class="card" style="margin-bottom:16px;">
|
||||
<h3 style="margin:0 0 12px; font-size:15px;">Testeaza conexiunea</h3>
|
||||
<form id="form-test-cheie"
|
||||
@@ -246,6 +246,42 @@
|
||||
<div id="integrare-test-rezultat" style="margin-top:8px;"></div>
|
||||
</div>
|
||||
|
||||
{# Formular test credentiale RAR (US-007, PRD 5.20) #}
|
||||
{# Login de proba pe mediul ales — fara efecte secundare, nu salveaza nimic. #}
|
||||
{# Banner-ul de rezultat include eticheta mediului ("pe TESTARE" / "pe PRODUCTIE"). #}
|
||||
<div class="card" style="margin-bottom:16px;">
|
||||
<h3 style="margin:0 0 6px; font-size:15px;">Testeaza credentiale RAR</h3>
|
||||
<p class="muted" style="font-size:12px; margin:0 0 10px;">
|
||||
Verifica daca credentialele RAR sunt corecte pe mediul ales. Nu se salveaza nimic.
|
||||
</p>
|
||||
<form id="form-test-rar-creds"
|
||||
hx-post="/cont/test-rar-creds"
|
||||
hx-target="#rar-test-rezultat"
|
||||
hx-swap="innerHTML"
|
||||
style="display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end;">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<div>
|
||||
<label for="test-rar-email" style="display:block; font-size:13px; color:var(--muted); margin-bottom:4px;">Email RAR</label>
|
||||
<input type="email" id="test-rar-email" name="rar_email" placeholder="email@service.ro"
|
||||
style="width:220px;" autocomplete="off">
|
||||
</div>
|
||||
<div>
|
||||
<label for="test-rar-parola" style="display:block; font-size:13px; color:var(--muted); margin-bottom:4px;">Parola RAR</label>
|
||||
<input type="password" id="test-rar-parola" name="rar_parola"
|
||||
style="width:160px;" autocomplete="new-password">
|
||||
</div>
|
||||
<div>
|
||||
<label for="test-rar-env" style="display:block; font-size:13px; color:var(--muted); margin-bottom:4px;">Mediu</label>
|
||||
<select id="test-rar-env" name="rar_env" style="height:36px; padding:0 8px;">
|
||||
<option value="prod">Productie</option>
|
||||
<option value="test">Testare</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit">Testeaza RAR</button>
|
||||
</form>
|
||||
<div id="rar-test-rezultat" style="margin-top:8px;"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user