URL: api/delete-login-logs/days/{userId} Method: POST Description : Login logs to be deleted older than certain days. Path Parameter: Parameter Type Required/Optional Description userId integer Required The id of the user Query Parameter: Parameter Type Required/Optional Description days integer Required The days before which login logs gets deleted. Success Response: { success: true, message: […]
Articles Tagged: Testing
Permission to get notified via mail when logged in from new device
URL: api/allow-login-logs/{userId}/{status} Method: POST Description : Gets the list of all the login logs for a user along with IP , browser and device info. Path Parameter: Parameter Type Required/Optional Description userId integer Required The id of the user status boolean Required Status for alerts (1 or 0) Success Response: { success: true, message: “Updated Successfully” […]
Logout from all devices
URL: api/logoutFromAllDevice/{userId} Method: POST Description : Logout a user from all the current sessions. Path Parameter: Parameter Type Required/Optional Description userId integer Required The id of the user Query Parameter: Parameter Type Required/Optional Description password string Required The password of the user Success Response: { success: true, message: “You have been logged out from all other […]
Get authentication/login logs for a user
URL: api/login/info/{userId?} Method: GET Description : Gets the list of all the login logs for a user along with IP , browser and device info. Path Parameter: Parameter Type Required/Optional Description userId integer Optional The id of the user Success Response: { “success”: true, “data”: { “allow_unrecognized_login”: 1, “current_page”: 1, “data”: [ { “id”: 311, “authenticatable_type”: […]