On Wed, Nov 26, 2014 at 2:23 PM, Natxo Asenjo <[email protected]> wrote:
> @@smscode.html.ep
> % layout 'default';
> %= session 'smscode'
> %= session 'random'
>
> % if ( session 'smscode' eq session 'random' ) {
> <%= form_for '/changepass' => (method => 'post') => begin %>
> Old Password:
> <%= input_tag 'old', type => 'password' %>
> <br>
> New Password:
> <%= input_tag 'new', type => 'password' %>
> <br>
> <%= submit_button %>
> <% end %>
> % }
>
> But the form is not displayed. I am obviously doing something wrong :-)
obviously I get to solve this right after hitting send on my e-mail client.
If I compare the session vars like this it works:
% if ( $self->session('smscode') eq $self->session('random') ) {
<%= form_for '/changepass' => (method => 'post') => begin %>
Old Password:
<%= input_tag 'old', type => 'password' %>
<br>
New Password:
<%= input_tag 'new', type => 'password' %>
<br>
<%= submit_button %>
<% end %>
% }
--
Groeten,
natxo
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.