mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Improve OAuth2 integration
This commit is contained in:
parent
cc6d272eb7
commit
747da03e4c
16 changed files with 120 additions and 15 deletions
|
@ -26,7 +26,7 @@ func Hash(value string) string {
|
|||
func GenerateRandomBytes(size int) []byte {
|
||||
b := make([]byte, size)
|
||||
if _, err := rand.Read(b); err != nil {
|
||||
panic(fmt.Errorf("Unable to generate random string: %v", err))
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue