Notice
Recent Posts
Recent Comments
Link
목록hashlib (1)
초보 개발자
회원가입 구현 hashlib
@app.route('/') def home(): # 현재 이용자의 컴퓨터에 저장된 cookie 에서 mytoken 을 가져옵니다. token_receive = request.cookies.get('mytoken') print(token_receive) try: # 암호화되어있는 token의 값을 우리가 사용할 수 있도록 디코딩(암호화 풀기)해줍니다! payload = jwt.decode(token_receive, SECRET_KEY, algorithms=['HS256']) user_info = db.user.find_one({"id": payload['id']}) return render_template('index.html', nickname=user_info["nick"]) # 만약 해당 token..
AI 웹개발 트랙 - 내배캠/3주차
2021. 12. 28. 15:30