Add more Yandex domains

This commit is contained in:
Alexander Krotov
2019-12-26 01:26:28 +01:00
parent f61846dec9
commit 1d46791364

View File

@@ -271,7 +271,8 @@ impl Oauth2 {
{ {
match domain { match domain {
"gmail.com" | "googlemail.com" => Some(OAUTH2_GMAIL), "gmail.com" | "googlemail.com" => Some(OAUTH2_GMAIL),
"yandex.com" | "yandex.ru" | "yandex.ua" => Some(OAUTH2_YANDEX), "yandex.com" | "yandex.by" | "yandex.kz" | "yandex.ru" | "yandex.ua" | "ya.ru"
| "narod.ru" => Some(OAUTH2_YANDEX),
_ => None, _ => None,
} }
} else { } else {