Use URL instead of string for QR login.

This commit is contained in:
John Preston
2019-12-06 13:27:10 +03:00
parent 352d87ba76
commit 240117b77e
+1 -1
View File
@@ -329,7 +329,7 @@ void QrWidget::showTokenError(const RPCError &error) {
void QrWidget::showToken(const QByteArray &token) {
const auto encoded = token.toBase64(QByteArray::Base64UrlEncoding);
_qrCodes.fire_copy("tg_login/" + encoded);
_qrCodes.fire_copy("tg://login?token=" + encoded);
}
void QrWidget::importTo(MTP::DcId dcId, const QByteArray &token) {