Fix image formats and size, add feedback
This commit is contained in:
1 parent
feaab7e4e2
commit
fef1abade8
11 files changed
+192
-12
No files matched your search
@@ -9,9 +9,14 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
MaxImageWidth = 1024
|
||||
MaxImageHeight = 1024
|
||||
PasswordCost = 14
|
||||
// MaxImageWidth and MaxImageHeight cap the dimensions of an uploaded
|
||||
// avatar.
|
||||
MaxImageWidth = 2048
|
||||
MaxImageHeight = 2048
|
||||
// MaxImageSize is the maximum accepted avatar upload size in bytes
|
||||
// (4 MiB).
|
||||
MaxImageSize = 4 << 20
|
||||
PasswordCost = 14
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
Reference in new issue
Block a user