mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix: page hint for comment list, keep SSH settings on re-login, hard-link-free downloads, stable OWNER/REPO#N instance (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
11 files changed
+154
-10
No files matched your search
@@ -87,6 +87,12 @@ func (m Manager) register(instance, user string, account settings.Account, optio
|
||||
}
|
||||
undo = append(undo, func() error { return m.credentials.Delete(instance, user, account.CredentialStore) })
|
||||
}
|
||||
if exists && credential != nil && !previous.Tokenless() {
|
||||
// Logging in again replaces the credential; settings made with tea config set stay.
|
||||
kept := previous
|
||||
kept.AuthMethod, kept.CredentialStore = account.AuthMethod, account.CredentialStore
|
||||
account = kept
|
||||
}
|
||||
host.Users[user] = account
|
||||
host.User = user
|
||||
if options.OAuthClientID != "" {
|
||||
|
||||
Reference in new issue
Block a user