"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ui/login-dialog.cpp" between
seafile-client-9.0.1.tar.gz and seafile-client-9.0.2.tar.gz

About: Seafile (client) for the Seafile cloud storage system.

login-dialog.cpp  (seafile-client-9.0.1):login-dialog.cpp  (seafile-client-9.0.2)
skipping to change at line 328 skipping to change at line 328
void LoginDialog::onHttpError(int code) void LoginDialog::onHttpError(int code)
{ {
const QNetworkReply* reply = request_->reply(); const QNetworkReply* reply = request_->reply();
if (reply->hasRawHeader(kSeafileOTPHeader) && if (reply->hasRawHeader(kSeafileOTPHeader) &&
QString(reply->rawHeader(kSeafileOTPHeader)) == "required") { QString(reply->rawHeader(kSeafileOTPHeader)) == "required") {
TwoFactorDialog two_factor_dialog; TwoFactorDialog two_factor_dialog;
if (two_factor_dialog.exec() == QDialog::Accepted) { if (two_factor_dialog.exec() == QDialog::Accepted) {
two_factor_auth_token_ = two_factor_dialog.getText(); two_factor_auth_token_ = two_factor_dialog.getText();
is_remember_device_ = two_factor_dialog.rememberDeviceChecked(); is_remember_device_ = two_factor_dialog.rememberDeviceChecked();
}
if (!two_factor_auth_token_.isEmpty()) { if (!two_factor_auth_token_.isEmpty()) {
doLogin(); doLogin();
return; return;
}
} }
} else { } else {
QString err_msg, reason; QString err_msg, reason;
if (code == 400) { if (code == 400) {
reason = tr("Incorrect email or password"); reason = tr("Incorrect email or password");
} else if (code == 429) { } else if (code == 429) {
reason = tr("Logging in too frequently, please wait a minute"); reason = tr("Logging in too frequently, please wait a minute");
} else if (code == 500) { } else if (code == 500) {
reason = tr("Internal Server Error"); reason = tr("Internal Server Error");
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)