Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

make user invitation function #4

wants to merge 12 commits into from

Conversation

ttexan1
Copy link

@ttexan1 ttexan1 commented Nov 25, 2019

No description provided.

@ttexan1 ttexan1 added the wip work in progress label Nov 25, 2019
</div>
</form>
<p>または、</p>
<a href="{{.LoginURL}}" class="login btn btn-primary btn-lg">@Sc0villeでログイン</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Googleアカウントでログイン

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

{{define "body"}}
<div class="jumbotron">
<div>
<p>新しくユーザーを作成しました。以下のURLを共有し、24時間以内にユーザー登録を完了してください。</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ユーザーを招待しました。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> 再招待(ユーザーがすでに存在していたらhashをアップデートするだけ)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<div class="jumbotron">
<div>
<p>新しくユーザーを作成しました。以下のURLを共有し、24時間以内にユーザー登録を完了してください。</p>
<p>URL: {{.MainHost}}{{.RegisterPath}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コピー機能あった方が
(URL短縮ページと同様)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Assign(domain.User{
Name: params.Name,
GoogleToken: params.GoogleToken,
Status: domain.UserStatusValid}).
Copy link
Contributor

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

Copy link
Author

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) {
Copy link
Contributor

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

Copy link
Author

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) {
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants