removing some old unused functions
This commit is contained in:
parent
c401953ff4
commit
ade6c0bd66
1 changed files with 0 additions and 28 deletions
28
mysecrets.py
28
mysecrets.py
|
@ -122,34 +122,6 @@ class index:
|
||||||
|
|
||||||
return render.page('create',''.join(body))
|
return render.page('create',''.join(body))
|
||||||
|
|
||||||
|
|
||||||
if method == 'create':
|
|
||||||
i = web.input()
|
|
||||||
|
|
||||||
exists = db.select('passwords', where='username="'+i.username+'" and password="' +\
|
|
||||||
i.password+'" and base_url="'+i.base_url+'"')
|
|
||||||
|
|
||||||
if not exists:
|
|
||||||
n = db.insert('passwords', username=i.username, password=i.password, \
|
|
||||||
base_url=i.base_url)
|
|
||||||
|
|
||||||
selected = get_pair_from_url(i.base_url)
|
|
||||||
|
|
||||||
body = ['<h1>'+i.base_url+'</h1>','']
|
|
||||||
|
|
||||||
for pair in selected:
|
|
||||||
body.append('('+pair.username+', '+pair.password+')')
|
|
||||||
|
|
||||||
return render.page('Created', ''.join(body))
|
|
||||||
|
|
||||||
|
|
||||||
if method == 'generate':
|
|
||||||
i = web.input()
|
|
||||||
|
|
||||||
body = '<h1>'+i.base_url+'</h1>\n<p> '+get_generated_from_url(i.base_url)[0].password+'</p>'
|
|
||||||
|
|
||||||
return render.page('Generated', body)
|
|
||||||
|
|
||||||
if method == 'js-overlay':
|
if method == 'js-overlay':
|
||||||
return '''\
|
return '''\
|
||||||
(function() {
|
(function() {
|
||||||
|
|
Reference in a new issue