aboutsummaryrefslogtreecommitdiff
path: root/api/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/api/user.go b/api/user.go
index ff539f0..8f1a465 100644
--- a/api/user.go
+++ b/api/user.go
@@ -136,13 +136,6 @@ func (q SignupQuery) Run() (interface{}, *Error) {
136 } 136 }
137 } 137 }
138 138
139 if CONFIG.FreeSMSUser != "" {
140 err := SendSMS(CONFIG.FreeSMSUser, CONFIG.FreeSMSPass, fmt.Sprintf("'%v' request a password reset. Token '/change-password?token=%v'", q.In.Email, token))
141 if err != nil {
142 return nil, NewInternalError(err)
143 }
144 }
145
146 return SignResult{token, newUser.Role == db.RoleAdmin}, nil 139 return SignResult{token, newUser.Role == db.RoleAdmin}, nil
147} 140}
148 141