(c *context.Context)
| 195 | } |
| 196 | |
| 197 | func LoginTwoFactor(c *context.Context) { |
| 198 | _, ok := c.Session.Get("twoFactorUserID").(int64) |
| 199 | if !ok { |
| 200 | c.NotFound() |
| 201 | return |
| 202 | } |
| 203 | |
| 204 | c.Success(tmplUserAuthTwoFactor) |
| 205 | } |
| 206 | |
| 207 | func LoginTwoFactorPost(c *context.Context) { |
| 208 | userID, ok := c.Session.Get("twoFactorUserID").(int64) |