(c *context.Context)
| 248 | } |
| 249 | |
| 250 | func LoginTwoFactorRecoveryCode(c *context.Context) { |
| 251 | _, ok := c.Session.Get("twoFactorUserID").(int64) |
| 252 | if !ok { |
| 253 | c.NotFound() |
| 254 | return |
| 255 | } |
| 256 | |
| 257 | c.Success(tmplUserAuthTwoFactorRecoveryCode) |
| 258 | } |
| 259 | |
| 260 | func LoginTwoFactorRecoveryCodePost(c *context.Context) { |
| 261 | userID, ok := c.Session.Get("twoFactorUserID").(int64) |