Add CSRF field variable to all forms
parent
3e8d0d3778
commit
20ae77b90b
|
@ -30,6 +30,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%&CSRF%&
|
||||
<button type="submit" name="createIdent" class="btn btn-primary btn-lg">Erstelle Identität</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<button type="submit" name="generateLink" class="btn btn-primary btn-lg">Link Generieren</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<button type="submit" name="savePassword" class="btn btn-primary btn-lg">Speichern</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<button type="submit" name="saveProfileData" class="btn btn-primary btn-lg">Speichern</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -84,6 +85,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<center><button type="submit" name="savePassword" class="btn btn-primary btn-lg">Speichern</button></center>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -103,6 +105,7 @@
|
|||
<form action="index.php?page=profile" method="post">
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<center><button type="submit" name="createIAR" class="btn btn-primary btn-lg" %%IARBUTTONSTATE%%>IAR erstellen</button></center>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
<div class="row" style="margin-top: 15px;">
|
||||
<div class="col">
|
||||
%%CSRF%%
|
||||
<button type="submit" name="generateLink" class="btn btn-primary btn-lg">Link Generieren</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
{
|
||||
$entry = '<tr><td>'.htmlspecialchars(trim($RUNTIME['OPENSIM']->getUserName($row['IdentityID']))).' <span class="badge badge-info">Aktiv</span></td><td>-</td></tr>';
|
||||
}else{
|
||||
$entry = '<tr><td>'.htmlspecialchars(trim($RUNTIME['OPENSIM']->getUserName($row['IdentityID']))).'</td><td><form action="index.php?page=identities" method="post"><input type="hidden" name="newuuid" value="'.htmlspecialchars($row['IdentityID']).'"><button type="submit" name="enableIdent" class="btn btn-success btn-sm">Aktievieren</button></form></td></tr>';
|
||||
$entry = '<tr><td>'.htmlspecialchars(trim($RUNTIME['OPENSIM']->getUserName($row['IdentityID']))).'</td><td><form action="index.php?page=identities" method="post">%%CSRF%%<input type="hidden" name="newuuid" value="'.htmlspecialchars($row['IdentityID']).'"><button type="submit" name="enableIdent" class="btn btn-success btn-sm">Aktievieren</button></form></td></tr>';
|
||||
}
|
||||
|
||||
$table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table);
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
</div>
|
||||
|
||||
<div class="container-login100-form-btn m-t-17">
|
||||
%%CSRF%%
|
||||
<button class="login100-form-btn" name="login">
|
||||
Anmelden
|
||||
</button>
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
</div>
|
||||
|
||||
<div class="container-login100-form-btn m-t-17">
|
||||
%%CSRF%%
|
||||
<input type="hidden" name="code" value="%%INVCODE%%">
|
||||
<button class="login100-form-btn" name="doRegister">
|
||||
Registrieren
|
||||
|
|
Loading…
Reference in New Issue