Exemplo n.º 1
0
func (fe *FrontEnd) makeInviteLink(v sys.View) string {
	// The variable names in the link are from the point of view of the receiver
	akopt := ""
	if v.GetDialKey() != nil {
		akopt = "&ak=" + http.URLEscape(v.GetDialKey().String())
	}
	link := fe.adminURL + "/accept?" +
		"na=" + http.URLEscape(fe.bank.GetMyName()) +
		"&em=" + http.URLEscape(fe.bank.GetMyEmail()) +
		"&sk=" + http.URLEscape(fe.bank.GetMySignatureKey().String()) +
		"&dk=" + http.URLEscape(v.GetAcceptKey().String()) +
		"&ad=" + http.URLEscape(fe.bank.GetMyExtAddr()) +
		akopt
	return link
}