Je regarde un exemple de code et ne peux pas comprendre comment l'authentification est faite.essayer de comprendre comment l'authentification est effectuée dans cet exemple
Des idées comment ce code simple authentifie les utilisateurs?
Merci,
<script type='text/javascript'>
//<![CDATA[
window._auth_token_name = "authenticity_token";
window._auth_token = "k0d6elNSSvaejR63eiqcZrv3O8fU/6VL2kvoqmpdO6k=";
//]]>
</script>
</head>
<body>
<div id="messages">
<div id="info"></div>
<div id="error"></div>
</div>
<div id="header">
</div>
<div id="center">
<table>
<form action="/admin/login" class="new_user" id="new_user" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="k0d6elNSSvaejR63eiqcZrv3O8fU/6VL2kvoqmpdO6k=" /></div>
<tr>
<td>Username</td>
<td><input id="user_username" name="user[username]" size="30" type="text" /></td>
</tr>
<tr>
<td>Password</td>
<td><input id="user_password" name="user[password]" size="30" type="password" />
</tr>
<tr>
<td colspan="2">
<input id="user_submit" name="commit" type="submit" value="Log in" />
</td>
</tr>
</form>
</table>
</div>