File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 8
8
import csv
9
9
from pyramid .renderers import render_to_response
10
10
11
- PASSWD = 'hogehoge'
11
+ USER = 'user'
12
+ PASSWD = 'password'
12
13
COOKIE = 'mycookie'
13
14
MAPPINGS = 'mapping/mapping.txt'
14
15
RLEASE_MODE = False
@@ -52,7 +53,7 @@ def _disp_images(request):
52
53
'images.mak' ,
53
54
params ,
54
55
request = request )
55
- response .set_cookie ('sid' , 'piyopiyo ' )
56
+ response .set_cookie ('sid' , 'iv ' )
56
57
return response
57
58
58
59
@@ -61,11 +62,11 @@ def _logout(request):
61
62
62
63
63
64
def __can_login (username , userpass ):
64
- return username == 'piyo' and userpass == 'kumapiyo'
65
+ return username == USER and userpass == PASSWD
65
66
66
67
67
68
def __has_valid_cookie (cookie ):
68
- return cookie == 'piyopiyo '
69
+ return cookie == 'iv '
69
70
70
71
71
72
def __add_routes (config ):
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments