Skip to content

Commit ce0f7ab

Browse files
committed
Fix username and password.
1 parent 3926b54 commit ce0f7ab

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import csv
99
from pyramid.renderers import render_to_response
1010

11-
PASSWD = 'hogehoge'
11+
USER = 'user'
12+
PASSWD = 'password'
1213
COOKIE = 'mycookie'
1314
MAPPINGS = 'mapping/mapping.txt'
1415
RLEASE_MODE = False
@@ -52,7 +53,7 @@ def _disp_images(request):
5253
'images.mak',
5354
params,
5455
request=request)
55-
response.set_cookie('sid', 'piyopiyo')
56+
response.set_cookie('sid', 'iv')
5657
return response
5758

5859

@@ -61,11 +62,11 @@ def _logout(request):
6162

6263

6364
def __can_login(username, userpass):
64-
return username == 'piyo' and userpass == 'kumapiyo'
65+
return username == USER and userpass == PASSWD
6566

6667

6768
def __has_valid_cookie(cookie):
68-
return cookie == 'piyopiyo'
69+
return cookie == 'iv'
6970

7071

7172
def __add_routes(config):

mapping/mapping.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)