mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-24 21:33:48 +00:00
Fixed signing in to mailboxes with characters beyond ASCII in the username or password (#1224)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
f6a4348820
commit
c72a1948b3
27 files changed
+1052
-30
No files matched your search
@@ -1,6 +1,7 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
using AIStudio.Provider;
|
||||
using AIStudio.Tools.Mail;
|
||||
using AIStudio.Tools.Services;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
@@ -73,6 +74,17 @@ public record struct DataSourceMailbox: IIndexedDataSource, ISecretId
|
||||
/// </summary>
|
||||
public MailboxAuthMethod AuthMethod { get; set; } = MailboxAuthMethod.PASSWORD;
|
||||
|
||||
/// <summary>
|
||||
/// The encoding in which the username and the password are sent when signing in, stored by its
|
||||
/// name, e.g., "utf-8" or "windows-1252".
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A mailbox stored before this setting existed loads with UTF-8, which AI Studio always used
|
||||
/// until then. A name this version does not know, e.g., one written into the settings by hand, keeps
|
||||
/// the mailbox from signing in at all, cf. MailboxPasswordEncoding.IsKnown.
|
||||
/// </remarks>
|
||||
public MailboxPasswordEncoding PasswordEncoding { get; set; } = MailboxPasswordEncoding.DEFAULT;
|
||||
|
||||
/// <summary>
|
||||
/// The username to sign in with, often the e-mail address.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user