MCPcopy Index your code
hub / github.com/diffgram/diffgram / new_login_history

Function new_login_history

shared/database/user.py:513–520  ·  view source on GitHub ↗
(session, success, otp_success, remote_address, user_id)

Source from the content-addressed store, hash-verified

511
512
513def 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
523setattr(User, "new_login_history", new_login_history)

Callers

nothing calls this directly

Calls 2

UserLoginHistoryClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected