Skip to content

Commit

Permalink
(crypto) s3cure chats bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
souvlakias authored Jun 30, 2024
1 parent 58a948f commit 1333039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/s3cure-chats/setup/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ def register(error_message=''):
return redirect(url_for('register'))
n_len=int(request.form['n_length'])
e=int(request.form['e'])
session['username']=username
key=make_key(n_len,e)
session['private_key']=key.export_key().decode()
session['public_key']=key.public_key().export_key().decode()
session['username']=username
add_user(username,key)
return redirect(url_for('chats'))
except Exception as e:
session.clear()
flash('Invalid Request')
print(e)
return redirect(url_for('register'))
Expand Down

0 comments on commit 1333039

Please sign in to comment.