Skip to content

Commit 3841e7c

Browse files
mcalingheesandhose
andauthored
Apply suggestions from code review
Co-authored-by: Quentin Gliech <[email protected]>
1 parent 7a9150f commit 3841e7c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

crates/data-model/src/upstream_oauth2/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ impl ImportAction {
355355
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
356356
#[serde(rename_all = "lowercase")]
357357
pub enum OnConflict {
358-
/// Fails the sso login on claim conflict
358+
/// Fails the upstream OAuth 2.0 login
359359
#[default]
360360
Fail,
361361

362-
/// Adds the oauth identity link, regardless of whether there is an existing
362+
/// Adds the upstream account link, regardless of whether there is an existing
363363
/// link or not
364364
Add,
365365
}

docs/reference/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ upstream_oauth2:
757757

758758
# How to handle when localpart already exists.
759759
# Possible values are (default: fail):
760-
# - `add` : Adds the oauth identity link to the existing user, regardless of whether there is an existing link or not.
761-
# - `fail` : Fails the sso login.
760+
# - `add` : Adds the upstream account link to the existing user, regardless of whether there is an existing link or not.
761+
# - `fail` : Fails the upstream OAuth 2.0 login.
762762
#on_conflict: fail
763763

764764
# The display name is the user's display name.

templates/pages/upstream_oauth2/login_link.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{#
2-
Copyright 2024 New Vector Ltd.
3-
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
2+
Copyright 2025 New Vector Ltd.
43

54
SPDX-License-Identifier: AGPL-3.0-only
65
Please see LICENSE in the repository root for full details.

translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
"@action": {
699699
"context": "pages/upstream_oauth2/login_link.html:28:28-70"
700700
},
701-
"description": "An account exists for the username : %(username)s, it will be linked to this new provider",
701+
"description": "An account exists for this username (%(username)s), it will be linked to this upstream account.",
702702
"@description": {
703703
"context": "pages/upstream_oauth2/login_link.html:22:7-85"
704704
},

0 commit comments

Comments
 (0)