Morgan Bazalgette
188b2ecc91
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
7 years ago
Lunny Xiao
a5c212cd1e
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
d8cb682c29
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
a186f896eb
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
c2b107fcb0
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
2e41758ca3
Fix lint errors ( #2547 )
7 years ago
Antoine GIRARD
90af250342
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
79be81b778
remove unnecessary blank lines and wrong error log
8 years ago
Lauris BH
625f482b25
Refactor session close as xorm already does everything needed internally ( #2020 )
8 years ago
Lauris BH
90f7beefc2
Fix GPG email checking to be case insensitive ( #1988 )
8 years ago
Antoine GIRARD
f45aa2dc82
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
8 years ago
Antoine GIRARD
69dd710f89
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
8 years ago
Antoine GIRARD
fe14d3b3fa
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
8 years ago
Lunny Xiao
58baf41539
fix gpg wrong column types
8 years ago
Antoine GIRARD
d110b2d4bd
Implement GPG api ( #710 )
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
8 years ago