Skip to content

Commit

Permalink
POSTでログイン
Browse files Browse the repository at this point in the history
  • Loading branch information
takechanman1228 committed Nov 29, 2015
1 parent 2a865e3 commit 4c8f002
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion htdocs/index.php
Expand Up @@ -16,7 +16,7 @@
$routing_map = [
'logout' => ['GET', '/logout', 'logout'],
'login' => ['GET', '/login', 'login'],
['GET', '/login', 'login'],
['POST', '/login', 'login'],
'regist' => ['GET', '/regist', 'regist'],
['POST', '/regist', 'regist'],
'room' => ['GET', '/rooms/:slug', 'room', ['slug' => '/[-a-zA-Z]+/']],
Expand Down
2 changes: 1 addition & 1 deletion src/View/twig/index.tpl.html
Expand Up @@ -12,7 +12,7 @@
</fieldset>
</form>
{% else %}
<form action="/login" class="loginform">
<form action="/login" method=post class="loginform">
<fieldset>
<legend>Login</legend>
<input name=user value="{{ user }}" >
Expand Down
2 changes: 1 addition & 1 deletion src/View/twig/login.tpl.html
Expand Up @@ -6,7 +6,7 @@
{{ error }}
</div>
{% endif %}
<form action="/login" class="loginform">
<form action="/login" method=post class="loginform">
<fieldset>
<legend>Login</legend>
<input name=user value="{{ user }}" placeholder="ユーザー名" pattern="[a-zA-Z0-9]+">
Expand Down
2 changes: 1 addition & 1 deletion src/View/twig/regist.tpl.html
@@ -1,7 +1,7 @@
{% extends "layout.tpl.html" %}
{% block title %}Regist{% endblock %}
{% block content %}
<form action="/regist" class="loginform">
<form action="/regist" method=post class="loginform">
<fieldset>
<legend>Regist</legend>
<input name=user value="{{ user }}" required placeholder="ユーザー名" >
Expand Down

0 comments on commit 4c8f002

Please sign in to comment.