def auth_user_oid(self, email):
user = self.find_user(email=email)<EOL>if user is None or (not user.is_active):<EOL><INDENT>log.info(LOGMSG_WAR_SEC_LOGIN_FAILED.format(email))<EOL>return None<EOL><DEDENT>else:<EOL><INDENT>self.update_user_auth_stat(user)<EOL>return user<EOL><DEDENT>
OpenID user Authentication

:param email: user's email to authenticate
:type self: User model