(session, success, otp_success, remote_address, user_id)
| 511 | |
| 512 | |
| 513 | def new_login_history(session, success, otp_success, remote_address, user_id): |
| 514 | user_login_history = UserLoginHistory() |
| 515 | session.add(user_login_history) |
| 516 | |
| 517 | user_login_history.success = success |
| 518 | user_login_history.otp_success = otp_success |
| 519 | user_login_history.remote_address = remote_address |
| 520 | user_login_history.user_id = user_id |
| 521 | |
| 522 | |
| 523 | setattr(User, "new_login_history", new_login_history) |
nothing calls this directly
no test coverage detected