.interface_language(data.interface_language.clone())
.totp_2fa_secret(totp_2fa_secret)
.totp_2fa_url(totp_2fa_url)
+ .open_links_in_new_tab(data.open_links_in_new_tab)
.build();
let local_user_res = LocalUser::update(context.pool(), local_user_id, &local_user_form).await;
#[cfg_attr(feature = "full", ts(export))]
/// A captcha response.
pub struct CaptchaResponse {
- /// A Base64 encoded png
+ /// A Base64 encoded png
pub png: String,
- /// A Base64 encoded wav audio
+ /// A Base64 encoded wav audio
pub wav: String,
/// The UUID for the captcha item.
pub uuid: String,
pub email: Option<Sensitive<String>>,
/// Your bio / info, in markdown.
pub bio: Option<String>,
- /// Your matrix user id. Ex: @my_user:matrix.org
+ /// Your matrix user id. Ex: @my_user:matrix.org
pub matrix_user_id: Option<String>,
/// Whether to show or hide avatars.
pub show_avatars: Option<bool>,
/// None leaves it as is, true will generate or regenerate it, false clears it out.
pub generate_totp_2fa: Option<bool>,
pub auth: Sensitive<String>,
+ /// Open links in a new tab
+ pub open_links_in_new_tab: Option<bool>,
}
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
accepted_application -> Bool,
totp_2fa_secret -> Nullable<Text>,
totp_2fa_url -> Nullable<Text>,
+ open_links_in_new_tab -> Bool,
}
}
pub totp_2fa_secret: Option<String>,
/// A URL to add their 2-factor auth.
pub totp_2fa_url: Option<String>,
+ /// Open links in a new tab.
+ pub open_links_in_new_tab: bool,
}
#[derive(Clone, TypedBuilder)]
pub accepted_application: Option<bool>,
pub totp_2fa_secret: Option<Option<String>>,
pub totp_2fa_url: Option<Option<String>>,
+ pub open_links_in_new_tab: Option<bool>,
}
#[derive(Clone, TypedBuilder)]
pub accepted_application: Option<bool>,
pub totp_2fa_secret: Option<Option<String>>,
pub totp_2fa_url: Option<Option<String>>,
+ pub open_links_in_new_tab: Option<bool>,
}
totp_2fa_secret: inserted_sara_local_user.totp_2fa_secret,
totp_2fa_url: inserted_sara_local_user.totp_2fa_url,
password_encrypted: inserted_sara_local_user.password_encrypted,
+ open_links_in_new_tab: inserted_sara_local_user.open_links_in_new_tab,
},
creator: Person {
id: inserted_sara_person.id,
--- /dev/null
+alter table local_user drop column open_links_in_new_tab;
--- /dev/null
+alter table local_user add column open_links_in_new_tab boolean default false not null;