Changeset 751fac6b567d675afee10e627efb5cf786ce5c83 for http/passwd.cc
- Timestamp:
- 08/24/10 21:31:46 (21 months ago)
- Children:
- 7eb42bed950e3f81ef9f0d39432e07c55f12cc22
- Parents:
- ec0da3f87768820f9ca9e8065c7998e9d825bd4c
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (08/24/10 21:31:46)
- Files:
-
- 1 modified
-
http/passwd.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
http/passwd.cc
rcc0a570 r751fac6 1 1 /* This file is part of Alue, the multiprotocol Internet discussion daemon 2 2 3 Copyright © 2009 Antti-Juhani Kaijanaho3 Copyright © 2009, 2010 Antti-Juhani Kaijanaho 4 4 5 5 Alue is free software: you can redistribute it and/or modify it … … 54 54 std::string (*const dep)(std::string) = uri::percent_decode; 55 55 56 std::multimap<std::string,std::string> fb = 57 req->get_form_data(); 58 std::string uid = dep(lookup(fb, "userid")); 59 std::string pw1 = dep(lookup(fb, "password")); 60 std::string pw2 = dep(lookup(fb, "repass")); 61 std::string tokstr = dep(lookup(fb, "token")); 56 std::string uid = dep(req->get_form_field("userid")); 57 std::string pw1 = dep(req->get_form_field("password")); 58 std::string pw2 = dep(req->get_form_field("repass")); 59 std::string tokstr = dep(req->get_form_field("token")); 62 60 63 61 boost::shared_ptr<token> &tok = cb.get_http_token(tokstr); … … 176 174 } 177 175 178 std::multimap<std::string,std::string> fb =179 req->get_form_data();180 181 176 std::string tokstr; 182 177 boost::shared_ptr<token> tok; … … 224 219 am->insert("accept_charlist", q("utf8",false)); 225 220 226 std::string errmsg = dep( lookup(fb,"msg"));221 std::string errmsg = dep(req->get_form_field("msg")); 227 222 if (!errmsg.empty()) 228 223 am->insert("errmsg", q(errmsg, false));
