Skip to content

make user invitation function - #4

Open
ttexan1 wants to merge 12 commits into
masterfrom
user-invitation
Open

make user invitation function#4
ttexan1 wants to merge 12 commits into
masterfrom
user-invitation

Conversation

@ttexan1

@ttexan1 ttexan1 commented Nov 25, 2019

Copy link
Copy Markdown

No description provided.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Googleアカウントでログイン

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread src/providers/sql/users.go Outdated
Assign(domain.User{
Name: params.Name,
GoogleToken: params.GoogleToken,
Status: domain.UserStatusValid}).

Copy link
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread src/providers/sql/user_invitations.go Outdated
return invitation, err
}

func (c *client) CreateInvitation(params *domain.UserInvitation) (*domain.UserInvitation, error) {

Copy link
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread src/providers/sql/user_invitations.go Outdated
return invitation, err
}

func (c *client) UpdateInvitation(invitation, params *domain.UserInvitation) (*domain.UserInvitation, error) {

Copy link
Copy Markdown
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
Copy Markdown
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