New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple emails #755
Multiple emails #755
Conversation
A new struct is created named EmailAddress that contains alternative email addresses for users. Also the email related methods; IsEmailUsed and GetUserByEmail are updated. DeleteUser deletes the extra email addresses and DeleteInactivateUsers also deletes inactive accounts. This could be factored out, but should do it for now.
All basics are implemented. Missing are the right (localized) strings and the page markup could have a look at by a frontend guy.
Incredible! Thanks, we'll review it ASAP. |
// primary email address, but is not obligatory | ||
type EmailAddress struct { | ||
Id int64 | ||
OwnerId int64 `xorm:"INDEX NOT NULL"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to just use Uid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean instead of OwnerId? I copied the style from a PublicKey struct to call it OwnerId, but Uid would do fine as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, OwnerId is fine. I'm just thinking Uid is shorter...
Hi, thanks your PR again! I've made some comments. Not able to see UI yet, would check on that after this is merged. |
I'll try to check the comments today and make some improvements |
I fixed the issues you mentioned in 20b5c23 |
Thanks! Sorry for late, I just finished my final exam this week and prepare for going back to home. |
I was missing the option of adding multiple email addresses to a single user, so I tried to implement this. Please let me know how you like it! I am willing to fix it/change it as desired!