Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Feb 20, 2024
1 parent 8fe6b5c commit b8bcf83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion validate.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include "cinatra/coro_http_router.hpp"
#include "cinatra/url_encode_decode.hpp"
#include "feather.h"
#include "util.hpp"
using namespace cinatra;
Expand Down Expand Up @@ -230,7 +231,8 @@ struct check_login_input {
struct check_sign_out_input {
bool before(request& req, response& res) {
auto user_name = req.get_query_value("user_name");
auto email = req.get_query_value("email");
auto mail = req.get_query_value("email");
auto email = code_utils::url_decode(mail);
auto answer = req.get_query_value("answer");
auto pwd = req.get_query_value("user_pwd");

Expand Down

0 comments on commit b8bcf83

Please sign in to comment.