This is possible by changing the value for "Temporary password expire time".
Navigate to Administrator -> System settings
Type "password" in the search box under Name. When the new result has been filtered click on "Temporary password expire time".
In the new window, enter the value (represented in hours). Then click Save