SagePtr
043ab2cd59
Fix null pointer dereference in ParseCommitWithSignature ( #4962 )
6 years ago
Morgan Bazalgette
b730498f02
Don't write to log NoCommitterAccount ( #3621 )
* Don't write to log NoCommitterAccount
It's way too verbose, and the information is also printed to the user
already. Fixes #3602 .
* ignore err only if it's a ErrUserNotExist
* Replace with IsErrUserNotExist
6 years ago
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Julian Scholle
92123fe82a
GPG key email verification no longer case sensitive ( #2661 ) ( #2663 )
* GPG key email verification no longer case sensitive (#2661 )
* case insensitive GPG key email verification now cached (#2661 )
Signed-off-by: Julian Scholle <julian.scholle@googlemail.com>
7 years ago
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
a8717e5e3a
Use AfterLoad instead of AfterSet on Structs ( #2628 )
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
7 years ago
Ethan Koenig
4cb9394a97
Fix lint errors ( #2547 )
7 years ago
Antoine GIRARD
7c417bbb0d
Only check at least one email gpg key ( #2266 )
* Only require one email (possibly not yet validated)
* Update message error and check validation of commit
* Add integrations tests
* Complete integration for import
* Add pre-check/optimization
* Add some test (not finished)
* Finish
* Fix fixtures
* Fix typo
* Don't guess key ID
7 years ago
Lunny Xiao
33f3165296
remove unnecessary blank lines and wrong error log
7 years ago
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
7 years ago
Lauris BH
1a906f800d
Fix GPG email checking to be case insensitive ( #1988 )
7 years ago
Antoine GIRARD
274149dd14
Switch to keybase go-crypto (for some elliptic curve key) + test ( #1925 )
* Switch to keybase go-crypto (for some elliptic curve key) + test
* Use assert.NoError
and add a little more context to failing test description
* Use assert.(No)Error everywhere 🌈
and assert.Error in place of .Nil/.NotNil
7 years ago
Antoine GIRARD
8371f94d06
Rework SSH key management UI to add GPG ( #1293 )
* Rework SSH key management UI to add GPG
* Add more detail to gpg key display
* Update CHANGELOG.md
* Implement deletion UI
* Implement adding gpg UI
* Various fixes
- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed
* Add missing translation
* Split template
* Catch not found/verified email error
7 years ago
Antoine GIRARD
14fe9010ae
GPG commit validation ( #1150 )
* GPG commit validation
* Add translation
+ some little fix
* Move hash calc after retrieving of potential key + missing translation
* Add some little test
7 years ago
Lunny Xiao
608cd54a68
fix gpg wrong column types
7 years ago
Antoine GIRARD
ca1c3f1926
Implement GPG api ( #710 )
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
7 years ago