| 103 | } |
| 104 | |
| 105 | bool GetAuthCookie(std::string *cookie_out) |
| 106 | { |
| 107 | std::ifstream file; |
| 108 | std::string cookie; |
| 109 | boost::filesystem::path filepath = GetAuthCookieFile(); |
| 110 | file.open(filepath.string().c_str()); |
| 111 | if (!file.is_open()) |
| 112 | return false; |
| 113 | std::getline(file, cookie); |
| 114 | file.close(); |
| 115 | |
| 116 | if (cookie_out) |
| 117 | *cookie_out = cookie; |
| 118 | return true; |
| 119 | } |
| 120 | |
| 121 | void DeleteAuthCookie() |
| 122 | { |
no test coverage detected