forked from nedludd/sinatra-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.haml
executable file
·21 lines (21 loc) · 891 Bytes
/
signup.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#sinatra_authentication
- if Rack.const_defined?('Flash')
#sinatra_authentication_flash= flash[:notice]
%h1.page_title Signup
%form{:action => "/signup", :method => "post"}
.field
.label
%label{:for => "user_email"} Email
%input{ :id => "user_email", :name => "user[email]", :size => 30, :type => "text" }
.field
.label
%label{:for => "user_password"} Password
%input{ :id => "user_password", :name => "user[password]", :size => 30, :type => "password" }
.field
.label
%label{:for => "user_password_confirmation"} Confirm Password
%input{ :id => "user_password_confirmation", :name => "user[password_confirmation]", :size => 30, :type => "password" }
.buttons
%input{ :value => "Create account", :type => "submit" }
%a{:href => "/login", :class => 'sinatra_authentication_link'}
Login