MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / IsEmailAlreadyTaken

Function IsEmailAlreadyTaken

model/user.go:481–483  ·  view source on GitHub ↗
(email string)

Source from the content-addressed store, hash-verified

479}
480
481func IsEmailAlreadyTaken(email string) bool {
482 return DB.Unscoped().Where("email = ?", email).Find(&User{}).RowsAffected == 1
483}
484
485func IsWeChatIdAlreadyTaken(wechatId string) bool {
486 return DB.Unscoped().Where("wechat_id = ?", wechatId).Find(&User{}).RowsAffected == 1

Callers 2

SendEmailVerificationFunction · 0.92
SendPasswordResetEmailFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected