-
Notifications
You must be signed in to change notification settings - Fork 2
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
make user invitation function #4
base: master
Are you sure you want to change the base?
Conversation
templates/login.tpl
Outdated
</div> | ||
</form> | ||
<p>または、</p> | ||
<a href="{{.LoginURL}}" class="login btn btn-primary btn-lg">@Sc0villeでログイン</a> |
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.
Googleアカウントでログイン
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.
done
templates/invitation.tpl
Outdated
{{define "body"}} | ||
<div class="jumbotron"> | ||
<div> | ||
<p>新しくユーザーを作成しました。以下のURLを共有し、24時間以内にユーザー登録を完了してください。</p> |
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.
ユーザーを招待しました。
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.
=> 再招待(ユーザーがすでに存在していたらhashをアップデートするだけ)
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.
done
templates/invitation.tpl
Outdated
<div class="jumbotron"> | ||
<div> | ||
<p>新しくユーザーを作成しました。以下のURLを共有し、24時間以内にユーザー登録を完了してください。</p> | ||
<p>URL: {{.MainHost}}{{.RegisterPath}}</p> |
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.
コピー機能あった方が
(URL短縮ページと同様)
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.
done
src/providers/sql/users.go
Outdated
Assign(domain.User{ | ||
Name: params.Name, | ||
GoogleToken: params.GoogleToken, | ||
Status: domain.UserStatusValid}). |
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.
move this param to engine or wherever
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.
done
return invitation, err | ||
} | ||
|
||
func (c *client) CreateInvitation(params *domain.UserInvitation) (*domain.UserInvitation, error) { |
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.
no need to return UserInvitation
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.
done
return invitation, err | ||
} | ||
|
||
func (c *client) UpdateInvitation(invitation, params *domain.UserInvitation) (*domain.UserInvitation, error) { |
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.
no need to return UserInvitation
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.
done
No description provided.