Skip to content

Instantly share code, notes, and snippets.

View lmejiahn's full-sized avatar

Leonidas Mejia lmejiahn

View GitHub Profile
@lmejiahn
lmejiahn / login.html.twig
Last active December 17, 2015 18:48
Symfony2: Example of how can we after login, redirect to the original page after login.
<form class="form-signin" action="{{ path("fos_user_security_check") }}" method="post">
<h2 class="form-signin-heading">Conectarse</h2>
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
<div class="control-group">
<div class="controls">
<input type="text" class="input-block-level" id="username" name="_username" value="{{ last_username }}" required="required" placeholder="Usuario" />
</div>
</div>
<div class="control-group">
<div class="controls">