Allow to have admin and user authentication

admin is  for wifi / esp settings
user is for printer settings
admin and user ID can be defined in config.h
[ESP555]<admin password> allows to reset user password to default one
This commit is contained in:
luc lebosse
2016-07-04 17:27:03 +02:00
parent 3575652099
commit 5296770703
7 changed files with 148 additions and 70 deletions

View File

@@ -17,7 +17,7 @@ $INCLUDE[css.inc]$
<td class="$MENU_PRINTER$"><a href="http://$WEB_ADDRESS$/PRINTER">3D Printer</a></td>
<td class="$MENU_SETTINGS$"><a href="http://$WEB_ADDRESS$/SETTINGS">Extra Settings</a></td>
<td width=100%>&nbsp;</td>
<td class="$MENU_ADMIN$"><a href="/PASSWORD" style="$DISCONNECT_VISIBILITY$">Admin</a></td>
<td class="$MENU_ADMIN$"><a href="/PASSWORD" style="$DISCONNECT_VISIBILITY$">$LOGIN_ID$</a></td>
<td style="padding:0px;"><a href="/LOGIN?DISCONNECT=YES"><div class="btnroundimg" style="$DISCONNECT_VISIBILITY$"><svg width="30" height="30" viewBox="0 0 40 40">
<circle style="fill:white" cx="20" cy="20" r="20"/>
<circle style="fill:white;stroke:black;stroke-width:4" cx="20" cy="15" r="10"/>