return nil, NewInternalError(fmt.Errorf("cannot create jwt token %v", err))
}
+ if CONFIG.FreeSMSUser != "" {
+ err := SendSMS(CONFIG.FreeSMSUser, CONFIG.FreeSMSPass, fmt.Sprintf("New user signup '%v'", q.In.Email))
+ if err != nil {
+ return nil, NewInternalError(err)
+ }
+ }
+
return SignResult{token}, nil
}