mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Merge branch 'master' into feat/approval-new
# Conflicts: # models/error.go # models/migrations/migrations.go # models/models.go # public/js/index.js
This commit is contained in:
		| @@ -1238,6 +1238,28 @@ func (err ErrExternalLoginUserNotExist) Error() string { | ||||
| 	return fmt.Sprintf("external login user link does not exists [userID: %d, loginSourceID: %d]", err.UserID, err.LoginSourceID) | ||||
| } | ||||
|  | ||||
| // ____ ________________________________              .__          __                 __  .__ | ||||
| // |    |   \_____  \_   _____/\______   \ ____   ____ |__| _______/  |_____________ _/  |_|__| ____   ____ | ||||
| // |    |   //  ____/|    __)   |       _// __ \ / ___\|  |/  ___/\   __\_  __ \__  \\   __\  |/  _ \ /    \ | ||||
| // |    |  //       \|     \    |    |   \  ___// /_/  >  |\___ \  |  |  |  | \// __ \|  | |  (  <_> )   |  \ | ||||
| // |______/ \_______ \___  /    |____|_  /\___  >___  /|__/____  > |__|  |__|  (____  /__| |__|\____/|___|  / | ||||
| // \/   \/            \/     \/_____/         \/                   \/                    \/ | ||||
|  | ||||
| // ErrU2FRegistrationNotExist represents a "ErrU2FRegistrationNotExist" kind of error. | ||||
| type ErrU2FRegistrationNotExist struct { | ||||
| 	ID int64 | ||||
| } | ||||
|  | ||||
| func (err ErrU2FRegistrationNotExist) Error() string { | ||||
| 	return fmt.Sprintf("U2F registration does not exist [id: %d]", err.ID) | ||||
| } | ||||
|  | ||||
| // IsErrU2FRegistrationNotExist checks if an error is a ErrU2FRegistrationNotExist. | ||||
| func IsErrU2FRegistrationNotExist(err error) bool { | ||||
| 	_, ok := err.(ErrU2FRegistrationNotExist) | ||||
| 	return ok | ||||
| } | ||||
|  | ||||
| //  __________            .__ | ||||
| //  \______   \ _______  _|__| ______  _  __ | ||||
| //  |       _// __ \  \/ /  |/ __ \ \/ \/ / | ||||
|   | ||||
		Reference in New Issue
	
	Block a user