Signed-off-by: oppiliappan me@oppi.li
+1
appview/pages/pages.go
+1
appview/pages/pages.go
+2
-2
appview/pages/templates/timeline/fragments/hero.html
+2
-2
appview/pages/templates/timeline/fragments/hero.html
···
10
10
communities can freely self-govern and most importantly, coding can
11
11
be social and fun again.
12
12
</p>
13
-
<form class="flex gap-2 items-stretch">
13
+
<form class="flex gap-2 items-stretch" method="get" action="/signup">
14
14
<input
15
15
type="email"
16
16
id="email"
17
-
name="email"
17
+
name="id"
18
18
tabindex="4"
19
19
required
20
20
placeholder="Enter your email"
+1
appview/pages/templates/user/signup.html
+1
appview/pages/templates/user/signup.html
+2
appview/signup/signup.go
+2
appview/signup/signup.go
···
118
118
func (s *Signup) signup(w http.ResponseWriter, r *http.Request) {
119
119
switch r.Method {
120
120
case http.MethodGet:
121
+
emailId := r.URL.Query().Get("id")
121
122
s.pages.Signup(w, pages.SignupParams{
122
123
CloudflareSiteKey: s.config.Cloudflare.TurnstileSiteKey,
124
+
EmailId: emailId,
123
125
})
124
126
case http.MethodPost:
125
127
if s.cf == nil {
+1
appview/state/router.go
+1
appview/state/router.go
+3
-1
appview/state/timeline.go
+3
-1
appview/state/timeline.go
···
13
13
// TODO: set this flag based on the UI
14
14
filtered := false
15
15
16
+
user := s.oauth.GetMultiAccountUser(r)
17
+
16
18
timeline, err := db.MakeTimeline(s.db, 50, "", filtered)
17
19
if err != nil {
18
20
s.logger.Error("failed to make timeline", "err", err)
···
26
28
}
27
29
28
30
fmt.Println(s.pages.Home(w, pages.TimelineParams{
29
-
LoggedInUser: nil,
31
+
LoggedInUser: user,
30
32
Timeline: timeline,
31
33
BlueskyPosts: blueskyPosts,
32
34
}))
History
5 rounds
0 comments
1 commit
expand
collapse
appview/signup: redirect forms on home page to signup page
Signed-off-by: oppiliappan <me@oppi.li>
1/3 failed, 2/3 success
expand
collapse
expand 0 comments
pull request successfully merged
1 commit
expand
collapse
appview/signup: redirect forms on home page to signup page
Signed-off-by: oppiliappan <me@oppi.li>
1/3 failed, 2/3 success
expand
collapse
expand 0 comments
1 commit
expand
collapse
appview/signup: redirect forms on home page to signup page
Signed-off-by: oppiliappan <me@oppi.li>