fmt all go file
This commit is contained in:
app
cmd
controllers
AlbumController.goAttachController.goAuthController.goBaseController.goBlogController.goCaptchaController.goFileController.goIndexController.goNoteContentHistoryController.goNoteController.goNotebookController.goPreviewController.goShareController.goTagController.goUserController.go
admin
AdminBaseController.goAdminBlogController.goAdminController.goAdminData.goAdminEmailController.goAdminSettingController.goAdminUpgradeController.goAdminUserController.goinit.go
api
ApiAuthController.goApiBaseController.goApiFileController.goApiNoteController.goApiNotebookController.goApiTagController.goApiUserController.goinit.go
init.gomember
db
i18n
info
Api.goAttachInfo.goBlogCustom.goBlogInfo.goConfiginfo.goNoteImage.goNoteInfo.goNotebookInfo.goRe.goSessionInfo.goTagInfo.goThemeInfo.goTokenInfo.goUserInfo.gocommon.go
init.golea
release
service
AlbumService.goAttachService.goBlogService.goConfigService.goEmailService.goFileService.goGroupService.goNoteContentHistoryService.goNoteImageService.goNoteService.goNotebookService.goPwdService.goSessionService.goShareService.goSuggestionService.goTagService.goThemeService.goTokenService.goTrashService.goUpgradeService.goUserService.gocommon.goinit.go
tests
@ -7,7 +7,7 @@ func ComparePwd(rawPwd, dbPwd string) bool {
|
||||
if len(dbPwd) == 32 {
|
||||
return Md5(rawPwd) == dbPwd
|
||||
}
|
||||
|
||||
|
||||
hex := []byte(dbPwd)
|
||||
return CompareHash(hex, rawPwd)
|
||||
}
|
||||
@ -19,4 +19,4 @@ func GenPwd(rawPwd string) string {
|
||||
return ""
|
||||
}
|
||||
return string(digest)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user