97 changed files with 16245 additions and 23756 deletions
File diff suppressed because it is too large
@ -0,0 +1 @@ |
|||
ALTER TABLE users ADD COLUMN key_id TEXT; |
|||
@ -1,15 +1,31 @@ |
|||
-- Dynamically create DROP FOREIGN KEY |
|||
-- Some versions of MySQL or MariaDB might fail if the key doesn't exists |
|||
-- This checks if the key exists, and if so, will drop it. |
|||
SET @drop_sso_fk = IF((SELECT true FROM information_schema.TABLE_CONSTRAINTS WHERE |
|||
CONSTRAINT_SCHEMA = DATABASE() AND |
|||
TABLE_NAME = 'sso_users' AND |
|||
CONSTRAINT_NAME = 'sso_users_ibfk_1' AND |
|||
CONSTRAINT_TYPE = 'FOREIGN KEY') = true, |
|||
'ALTER TABLE sso_users DROP FOREIGN KEY sso_users_ibfk_1', |
|||
'SELECT 1'); |
|||
PREPARE stmt FROM @drop_sso_fk; |
|||
EXECUTE stmt; |
|||
DEALLOCATE PREPARE stmt; |
|||
SELECT if ( |
|||
EXISTS( |
|||
SELECT CONSTRAINT_NAME FROM information_schema.table_constraints |
|||
WHERE TABLE_SCHEMA = DATABASE() |
|||
AND TABLE_NAME = 'sso_users' |
|||
AND CONSTRAINT_TYPE = 'FOREIGN KEY' |
|||
AND CONSTRAINT_NAME = 'sso_users_ibfk_1' |
|||
) |
|||
,'ALTER TABLE sso_users DROP FOREIGN KEY `sso_users_ibfk_1`' |
|||
,'SELECT "info: FK sso_users_ibfk_1 does not exist."' |
|||
) INTO @drop_stmt; |
|||
PREPARE drop_stmt FROM @drop_stmt; |
|||
EXECUTE drop_stmt; |
|||
|
|||
SELECT if ( |
|||
EXISTS( |
|||
SELECT CONSTRAINT_NAME FROM information_schema.table_constraints |
|||
WHERE TABLE_SCHEMA = DATABASE() |
|||
AND TABLE_NAME = 'sso_users' |
|||
AND CONSTRAINT_TYPE = 'FOREIGN KEY' |
|||
AND CONSTRAINT_NAME = '1' |
|||
) |
|||
,'ALTER TABLE sso_users DROP FOREIGN KEY `1`' |
|||
,'SELECT "info: FK sso_users 1 does not exist."' |
|||
) INTO @drop_stmt; |
|||
PREPARE drop_stmt FROM @drop_stmt; |
|||
EXECUTE drop_stmt; |
|||
|
|||
DEALLOCATE PREPARE drop_stmt; |
|||
|
|||
ALTER TABLE sso_users ADD FOREIGN KEY(user_uuid) REFERENCES users(uuid) ON UPDATE CASCADE ON DELETE CASCADE; |
|||
|
|||
@ -0,0 +1 @@ |
|||
ALTER TABLE users ADD COLUMN key_id TEXT; |
|||
@ -0,0 +1 @@ |
|||
ALTER TABLE users ADD COLUMN key_id TEXT; |
|||
@ -0,0 +1 @@ |
|||
ALTER TABLE users ADD COLUMN key_id TEXT; |
|||
@ -0,0 +1,131 @@ |
|||
import { test, expect, type Page, type TestInfo, Test } from '@playwright/test'; |
|||
import { MailDev } from 'maildev'; |
|||
|
|||
import * as utils from "../global-utils"; |
|||
import { createAccount, logUser } from './setups/user'; |
|||
import { activateTOTP } from './setups/2fa'; |
|||
|
|||
let users = utils.loadEnv(); |
|||
let mailserver; |
|||
|
|||
test.beforeAll('Setup', async ({ browser }, testInfo: TestInfo) => { |
|||
mailserver = new MailDev({ |
|||
port: process.env.MAILDEV_SMTP_PORT, |
|||
web: { port: process.env.MAILDEV_HTTP_PORT }, |
|||
}) |
|||
|
|||
await mailserver.listen(); |
|||
|
|||
await utils.startVault(browser, testInfo, { |
|||
SMTP_HOST: process.env.MAILDEV_HOST, |
|||
SMTP_FROM: process.env.PW_SMTP_FROM, |
|||
}); |
|||
}); |
|||
|
|||
test.afterAll('Teardown', async ({}) => { |
|||
utils.stopVault(); |
|||
if( mailserver ){ |
|||
await mailserver.close(); |
|||
} |
|||
}); |
|||
|
|||
async function emergencyAccess(test: Test, page: Page, user: { name: string }) { |
|||
await test.step('Navigate', async () => { |
|||
await page.getByRole('button', { name: user.name }).click(); |
|||
await page.getByRole('menuitem', { name: 'Account settings' }).click(); |
|||
await page.getByRole('link', { name: 'Emergency access' }).click(); |
|||
await expect(page.locator('#main-content').getByText('Emergency access', { exact: true })).toBeVisible(); |
|||
}); |
|||
} |
|||
|
|||
test('Emergency access', async ({ browser, page }) => { |
|||
const context2 = await browser.newContext(); |
|||
const page2 = await context2.newPage(); |
|||
|
|||
const mailBuffer = mailserver.buffer(users.user1.email); |
|||
const mailBuffer2 = mailserver.buffer(users.user2.email); |
|||
|
|||
await createAccount(test, page, users.user1); |
|||
await createAccount(test, page2, users.user2); |
|||
|
|||
await test.step('Add test2', async () => { |
|||
await emergencyAccess(test, page, users.user1); |
|||
await page.getByRole('button', { name: 'Add emergency contact' }).click(); |
|||
await page.getByRole('textbox', { name: 'Email * (required)' }).fill(users.user2.email); |
|||
await page.getByRole('radio', { name: 'Takeover Can reset your' }).check(); |
|||
await page.getByRole('button', { name: 'Save' }).click(); |
|||
await utils.checkNotification(page, 'User(s) invited'); |
|||
}); |
|||
|
|||
await test.step('Accept', async () => { |
|||
const email = await mailBuffer2.expect((m) => m.subject === "Emergency access for " + users.user1.name); |
|||
const pageE = await context2.newPage(); |
|||
await pageE.setContent(email.html); |
|||
const link = await pageE.getByTestId("emergency").getAttribute("href"); |
|||
await pageE.close(); |
|||
|
|||
await page2.goto(link); |
|||
await utils.checkNotification(page2, 'Invitation accepted'); |
|||
}); |
|||
|
|||
await test.step('Confirm', async () => { |
|||
await emergencyAccess(test, page, users.user1); |
|||
await expect(page.locator('#main-content').getByText('Needs confirmation')).toBeVisible(); |
|||
await page.getByRole('button', { name: 'Options' }).click(); |
|||
await page.getByRole('menuitem', { name: 'Confirm' }).click(); |
|||
await page.getByRole('button', { name: 'Confirm' }).click(); |
|||
await utils.checkNotification(page, users.user2.name + ' confirmed'); |
|||
await mailBuffer2.expect((m) => m.subject === "Emergency access contact for " + users.user1.name + " confirmed"); |
|||
}); |
|||
|
|||
await test.step('Request', async () => { |
|||
await emergencyAccess(test, page2, users.user2); |
|||
await page2.getByRole('button', { name: 'Options' }).click(); |
|||
await page2.getByRole('menuitem', { name: 'Request Access' }).click(); |
|||
await page2.getByRole('button', { name: 'Request Access' }).click(); |
|||
await utils.checkNotification(page2, 'Emergency access requested'); |
|||
await mailBuffer.expect((m) => m.subject === "Emergency access request by " + users.user2.name + " initiated"); |
|||
}); |
|||
|
|||
await test.step('Approved', async () => { |
|||
await emergencyAccess(test, page, users.user1); |
|||
await page.getByRole('button', { name: 'Options' }).click(); |
|||
await page.getByRole('menuitem', { name: 'Approve' }).click(); |
|||
await page.getByRole('button', { name: 'Approve' }).click(); |
|||
await utils.checkNotification(page, 'Emergency access approved'); |
|||
await mailBuffer2.expect((m) => m.subject === "Emergency access request for " + users.user1.name + " approved"); |
|||
}); |
|||
await activateTOTP(test, page, users.user1); |
|||
|
|||
let newPassword = "TotoNewPassword"; |
|||
await test.step('Access', async () => { |
|||
await emergencyAccess(test, page2, users.user2); |
|||
await page2.getByRole('button', { name: 'Options' }).click(); |
|||
await page2.getByRole('menuitem', { name: 'Takeover' }).click(); |
|||
await page2.getByRole('textbox', { name: 'New master password * (required)', exact: true }).fill(newPassword); |
|||
await page2.getByRole('textbox', { name: 'Confirm new master password' }).fill(newPassword); |
|||
await page2.getByRole('button', { name: 'Save' }).click(); |
|||
await utils.checkNotification(page2, 'Password reset for ' + users.user1.name); |
|||
}); |
|||
|
|||
await test.step('Changed no 2fa', async () => { |
|||
users.user1.password = newPassword; |
|||
await logUser(test, page, users.user1); |
|||
}); |
|||
|
|||
await test.step('Reject', async () => { |
|||
await emergencyAccess(test, page, users.user1); |
|||
await page.getByRole('button', { name: 'Options' }).click(); |
|||
await page.getByRole('menuitem', { name: 'Reject' }).click(); |
|||
await utils.checkNotification(page, 'Emergency access rejected'); |
|||
await mailBuffer2.expect((m) => m.subject === "Emergency access request to " + users.user1.name + " rejected"); |
|||
}); |
|||
|
|||
await test.step('Remove', async () => { |
|||
await page.getByRole('button', { name: 'Options' }).click(); |
|||
await page.getByRole('menuitem', { name: 'Remove' }).click(); |
|||
await page.getByRole('button', { name: 'Yes' }).click(); |
|||
await utils.checkNotification(page, 'Removed user ' + users.user2.name); |
|||
await expect(page.getByText('You have not added any emergency contacts')).toBeVisible(); |
|||
}); |
|||
}); |
|||
@ -1,4 +1,4 @@ |
|||
[toolchain] |
|||
channel = "1.97.1" |
|||
channel = "1.99.0" |
|||
components = [ "rustfmt", "clippy" ] |
|||
profile = "minimal" |
|||
|
|||
@ -0,0 +1,281 @@ |
|||
use chrono::{TimeDelta, Utc}; |
|||
use serde::{de::DeserializeOwned, ser::Serialize}; |
|||
use std::sync::LazyLock; |
|||
|
|||
use crate::{ |
|||
CONFIG, |
|||
api::{ApiResult, EmptyResult}, |
|||
auth::{decode_jwt, encode_jwt}, |
|||
db::models::UserId, |
|||
}; |
|||
|
|||
static JWT_2FA_AUTH_ISSUER: LazyLock<String> = LazyLock::new(|| format!("{}|api.2fa", CONFIG.domain_origin())); |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
pub struct TwoFactorClaims<T> { |
|||
// Not before
|
|||
pub nbf: i64, |
|||
// Expiration time
|
|||
pub exp: i64, |
|||
// Issuer
|
|||
pub iss: String, |
|||
// Subject
|
|||
pub sub: UserId, |
|||
|
|||
pub enabled: bool, |
|||
|
|||
pub claims: T, |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
#[serde(deny_unknown_fields)] |
|||
pub struct AuthenticatorClaims { |
|||
#[serde(rename = "authenticator_key")] |
|||
pub key: String, |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
#[serde(deny_unknown_fields)] |
|||
pub struct DuoClaims { |
|||
#[serde(rename = "duo_data")] |
|||
pub data: Option<DuoData>, |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
#[serde(deny_unknown_fields)] |
|||
pub struct WebauthnClaims { |
|||
#[serde(rename = "webauthn_keys")] |
|||
pub keys: Vec<i32>, |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
#[serde(deny_unknown_fields)] |
|||
pub struct YubikeyClaims { |
|||
#[serde(rename = "yubi_keys")] |
|||
pub keys: Vec<String>, |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize, PartialEq)] |
|||
pub struct DuoData { |
|||
pub host: String, // Duo API hostname
|
|||
pub ik: String, // client id
|
|||
pub sk: String, // client secret
|
|||
} |
|||
|
|||
impl DuoData { |
|||
pub fn global() -> Option<Self> { |
|||
match (CONFIG._enable_duo(), CONFIG.duo_host()) { |
|||
(true, Some(host)) => Some(Self { |
|||
host, |
|||
ik: CONFIG.duo_ikey().unwrap(), |
|||
sk: CONFIG.duo_skey().unwrap(), |
|||
}), |
|||
_ => None, |
|||
} |
|||
} |
|||
pub fn msg(s: &str) -> Self { |
|||
Self { |
|||
host: s.into(), |
|||
ik: s.into(), |
|||
sk: s.into(), |
|||
} |
|||
} |
|||
pub fn secret() -> Self { |
|||
Self::msg("<global_secret>") |
|||
} |
|||
pub fn obscure(self) -> Self { |
|||
let mut host = self.host; |
|||
let mut ik = self.ik; |
|||
let mut sk = self.sk; |
|||
|
|||
let digits = 4; |
|||
let replaced = "************"; |
|||
|
|||
host.replace_range(digits.., replaced); |
|||
ik.replace_range(digits.., replaced); |
|||
sk.replace_range(digits.., replaced); |
|||
|
|||
Self { |
|||
host, |
|||
ik, |
|||
sk, |
|||
} |
|||
} |
|||
} |
|||
|
|||
#[derive(Serialize, Deserialize)] |
|||
#[serde(deny_unknown_fields)] |
|||
pub struct EmailClaims { |
|||
pub email: Option<String>, |
|||
} |
|||
|
|||
fn token<T: Serialize>(user_id: UserId, enabled: bool, claims: T) -> String { |
|||
let time_now = Utc::now(); |
|||
let claims = TwoFactorClaims { |
|||
nbf: time_now.timestamp(), |
|||
exp: (time_now + TimeDelta::try_minutes(5).unwrap()).timestamp(), |
|||
iss: JWT_2FA_AUTH_ISSUER.to_string(), |
|||
sub: user_id, |
|||
enabled, |
|||
claims, |
|||
}; |
|||
encode_jwt(&claims) |
|||
} |
|||
|
|||
fn validate<T: DeserializeOwned>(token: &str, user_id: &UserId, enabled: bool) -> ApiResult<T> { |
|||
match decode_jwt::<TwoFactorClaims<T>>(token, JWT_2FA_AUTH_ISSUER.to_string()) { |
|||
Ok(claims) => { |
|||
if claims.sub != *user_id { |
|||
err!("Invalid verification token: Invalid user"); |
|||
} |
|||
if claims.enabled != enabled { |
|||
err!("Invalid verification token: Invalid state"); |
|||
} |
|||
Ok(claims.claims) |
|||
} |
|||
Err(err) => err!(format!("Failed to decode verification token: {err}")), |
|||
} |
|||
} |
|||
|
|||
pub fn authenticator_token(user_id: UserId, key: String, enabled: bool) -> String { |
|||
token( |
|||
user_id, |
|||
enabled, |
|||
AuthenticatorClaims { |
|||
key, |
|||
}, |
|||
) |
|||
} |
|||
|
|||
pub fn validate_authenticator(token: &str, user_id: &UserId, key: &str, enabled: bool) -> EmptyResult { |
|||
let claims = validate::<AuthenticatorClaims>(token, user_id, enabled)?; |
|||
if claims.key != key { |
|||
err!("Invalid verification token: Invalid key"); |
|||
} |
|||
Ok(()) |
|||
} |
|||
|
|||
pub fn duo_token(user_id: UserId, data: Option<DuoData>, enabled: bool) -> String { |
|||
token( |
|||
user_id, |
|||
enabled, |
|||
DuoClaims { |
|||
data, |
|||
}, |
|||
) |
|||
} |
|||
|
|||
// When disabling we check that it's the correct data
|
|||
pub fn validate_duo(token: &str, user_id: &UserId, data: Option<&DuoData>, enabled: bool) -> EmptyResult { |
|||
let claims = validate::<DuoClaims>(token, user_id, enabled)?; |
|||
if enabled && claims.data.as_ref() != data { |
|||
err!("Invalid verification token: Invalid duo data"); |
|||
} |
|||
Ok(()) |
|||
} |
|||
|
|||
pub fn email_token(user_id: UserId, email: Option<String>, enabled: bool) -> String { |
|||
token( |
|||
user_id, |
|||
enabled, |
|||
EmailClaims { |
|||
email, |
|||
}, |
|||
) |
|||
} |
|||
|
|||
// When disabling we check that it's the correct `email`
|
|||
pub fn validate_email(token: &str, user_id: &UserId, email: String, enabled: bool) -> EmptyResult { |
|||
let claims = validate::<EmailClaims>(token, user_id, enabled)?; |
|||
if enabled && claims.email != Some(email) { |
|||
err!("Invalid verification token: Invalid email"); |
|||
} |
|||
Ok(()) |
|||
} |
|||
|
|||
pub fn webauthn_token(user_id: UserId, keys: Vec<i32>, enabled: bool) -> String { |
|||
token( |
|||
user_id, |
|||
enabled, |
|||
WebauthnClaims { |
|||
keys, |
|||
}, |
|||
) |
|||
} |
|||
|
|||
pub fn validate_webauthn(token: &str, user_id: &UserId, keys: &[i32], enabled: bool) -> EmptyResult { |
|||
let claims = validate::<WebauthnClaims>(token, user_id, enabled)?; |
|||
if keys != claims.keys { |
|||
err!("Invalid verification token: Invalid keys"); |
|||
} |
|||
Ok(()) |
|||
} |
|||
|
|||
pub fn yubikey_token(user_id: UserId, keys: Vec<String>, enabled: bool) -> String { |
|||
token( |
|||
user_id, |
|||
enabled, |
|||
YubikeyClaims { |
|||
keys, |
|||
}, |
|||
) |
|||
} |
|||
|
|||
pub fn validate_yubikey(token: &str, user_id: &UserId, keys: &Vec<String>, enabled: bool) -> EmptyResult { |
|||
let claims = validate::<YubikeyClaims>(token, user_id, enabled)?; |
|||
if *keys != claims.keys { |
|||
err!("Invalid verification token: Invalid keys"); |
|||
} |
|||
Ok(()) |
|||
} |
|||
|
|||
#[cfg(test)] |
|||
mod tests { |
|||
use super::*; |
|||
use serde_json::{Value, from_value, to_value}; |
|||
|
|||
fn token<T: Serialize>(claims: T) -> Value { |
|||
to_value(TwoFactorClaims { |
|||
nbf: 0, |
|||
exp: 0, |
|||
iss: String::new(), |
|||
sub: UserId::from(String::from("4ff0f0a4-0aa4-4c1d-9d43-1f2bd4d5e8b1")), |
|||
enabled: false, |
|||
claims, |
|||
}) |
|||
.unwrap() |
|||
} |
|||
|
|||
#[test] |
|||
fn claims_only_parse_as_their_own_provider() { |
|||
let tokens = [ |
|||
token(AuthenticatorClaims { |
|||
key: String::from("JBSWY3DPEHPK3PXP"), |
|||
}), |
|||
token(DuoClaims { |
|||
data: None, |
|||
}), |
|||
token(WebauthnClaims { |
|||
keys: vec![1], |
|||
}), |
|||
token(YubikeyClaims { |
|||
keys: Vec::new(), |
|||
}), |
|||
token(EmailClaims { |
|||
email: None, |
|||
}), |
|||
]; |
|||
for (issued, token) in tokens.iter().enumerate() { |
|||
let parsed = [ |
|||
from_value::<TwoFactorClaims<AuthenticatorClaims>>(token.clone()).is_ok(), |
|||
from_value::<TwoFactorClaims<DuoClaims>>(token.clone()).is_ok(), |
|||
from_value::<TwoFactorClaims<WebauthnClaims>>(token.clone()).is_ok(), |
|||
from_value::<TwoFactorClaims<YubikeyClaims>>(token.clone()).is_ok(), |
|||
from_value::<TwoFactorClaims<EmailClaims>>(token.clone()).is_ok(), |
|||
]; |
|||
for (checked, ok) in parsed.into_iter().enumerate() { |
|||
assert_eq!(ok, issued == checked, "token {issued} parsed as {checked}"); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,12 @@ |
|||
Admin account recovery from {{org_name}} organization |
|||
<!----------------> |
|||
{{#if reset_password}} |
|||
The master password for {{user_name}} has been changed. |
|||
{{/if}} |
|||
{{#if reset_2fa}} |
|||
Your two-step verification providers have been reset.{{#if fallback_2fa_email}} Email two factor has been activated as a fallback.{{/if}} |
|||
{{/if}} |
|||
|
|||
If you did not initiate this request, please reach out to your administrator immediately. |
|||
|
|||
{{> email/email_footer_text }} |
|||
@ -1,10 +1,17 @@ |
|||
Master Password Has Been Changed |
|||
Admin account recovery from {{org_name}} organization |
|||
<!----------------> |
|||
{{> email/email_header }} |
|||
<table width="100%" cellpadding="0" cellspacing="0" style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
The master password for <b style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">{{user_name}}</b> has been changed by an administrator in your <b style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">{{org_name}}</b> organization. If you did not initiate this request, please reach out to your administrator immediately. |
|||
{{#if reset_password}} |
|||
The master password for <b style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">{{user_name}}</b> has been changed. |
|||
{{/if}} |
|||
{{#if reset_2fa}} |
|||
Your two-step verification providers have been reset.{{#if fallback_2fa_email}} Email two factor has been activated as a fallback.{{/if}} |
|||
{{/if}} |
|||
<br> |
|||
If you did not initiate this request, please reach out to your administrator immediately. |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
@ -1,4 +0,0 @@ |
|||
Master Password Has Been Changed |
|||
<!----------------> |
|||
The master password for {{user_name}} has been changed by an administrator in your {{org_name}} organization. If you did not initiate this request, please reach out to your administrator immediately. |
|||
{{> email/email_footer_text }} |
|||
@ -0,0 +1,9 @@ |
|||
Two-Step Login Recovered From {{ip}} |
|||
<!----------------> |
|||
Two-step login on your account has been disabled by using the account's recovery code. |
|||
|
|||
* Date: {{datetime}} |
|||
* IP Address: {{ip}} |
|||
|
|||
If you did not perform this action, you should immediately take steps to secure your account. |
|||
{{> email/email_footer_text }} |
|||
@ -0,0 +1,26 @@ |
|||
Two-Step Login Recovered From {{ip}} |
|||
<!----------------> |
|||
{{> email/email_header }} |
|||
<table width="100%" cellpadding="0" cellspacing="0" style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
Two-step login on your account has been disabled by using the account's recovery code. |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
<b>Date:</b> {{datetime}} |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0 0 10px; -webkit-text-size-adjust: none;" valign="top"> |
|||
<b>IP Address:</b> {{ip}} |
|||
</td> |
|||
</tr> |
|||
<tr style="margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;"> |
|||
<td class="content-block last" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; color: #333; line-height: 25px; margin: 0; -webkit-font-smoothing: antialiased; padding: 0; -webkit-text-size-adjust: none;" valign="top"> |
|||
If you did not perform this action, you should immediately take steps to secure your account. |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
{{> email/email_footer }} |
|||
Loading…
Reference in new issue