Skip to content

Commit

Permalink
add logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmsj committed Apr 22, 2023
1 parent 64e043b commit d4e12d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,11 @@ async def progcheck():
async def sainfo():
return render_template('user_sainfo.html')

@app.route('/logout')
async def logout():
session.clear()
return redirect('/')


if __name__ == '__main__':
app.run(port=5200,debug=True)
2 changes: 2 additions & 0 deletions templates/clonepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<div class="container-md text-center text-white">
<h1 class="h1">Clone from a private drive to another drive</h1>
<br>
<a class="btn btn-danger" href="{{ url_for('logout') }}" role="button">Logout</a>
<br>
<br>
<h6 class="h6">Click on USE-SA button to use service accounts. (Limit 750*1000 = 75tb/day)</h6>
<h6 class="h6">If you do not click on USE-SA It will use your 750GB/day quota ....</h6>
Expand Down

0 comments on commit d4e12d5

Please sign in to comment.