jojo/services/auth/method/auth_result_httpsign.go

21 lines
451 B
Go
Raw Normal View History

// Copyright 2026 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: GPL-3.0-or-later
package method
import (
user_model "forgejo.org/models/user"
"forgejo.org/services/auth"
)
var _ auth.AuthenticationResult = &httpSignAuthenticationResult{}
type httpSignAuthenticationResult struct {
*auth.BaseAuthenticationResult
user *user_model.User
}
func (r *httpSignAuthenticationResult) User() *user_model.User {
return r.user
}