Show
Ignore:
Timestamp:
08/24/10 21:31:46 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
7eb42bed950e3f81ef9f0d39432e07c55f12cc22
Parents:
ec0da3f87768820f9ca9e8065c7998e9d825bd4c
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/24/10 21:31:46)
Message:

[http::request] Cleanup

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • http/passwd.cc

    rcc0a570 r751fac6  
    11/*  This file is part of Alue, the multiprotocol Internet discussion daemon 
    22 
    3     Copyright © 2009 Antti-Juhani Kaijanaho 
     3    Copyright © 2009, 2010 Antti-Juhani Kaijanaho 
    44 
    55    Alue is free software: you can redistribute it and/or modify it 
     
    5454                std::string (*const dep)(std::string) = uri::percent_decode; 
    5555 
    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")); 
    6260                 
    6361                boost::shared_ptr<token> &tok = cb.get_http_token(tokstr); 
     
    176174                } 
    177175 
    178                 std::multimap<std::string,std::string> fb =  
    179                         req->get_form_data(); 
    180  
    181176                std::string tokstr; 
    182177                boost::shared_ptr<token> tok; 
     
    224219                am->insert("accept_charlist", q("utf8",false)); 
    225220 
    226                 std::string errmsg = dep(lookup(fb, "msg")); 
     221                std::string errmsg = dep(req->get_form_field("msg")); 
    227222                if (!errmsg.empty())  
    228223                        am->insert("errmsg", q(errmsg, false));