README.md in authorizme-1.0.0 vs README.md in authorizme-1.1.0
- old
+ new
@@ -56,11 +56,13 @@
```javascript
<script type="text/javascript">
$(document).ready(function() {
window.close();
- window.opener.eventBus.trigger("loginDone");
+ if (window.opener.eventBus) {
+ window.opener.eventBus.trigger("loginDone");
+ }
window.opener.focus();
});
</script>
```
You can override this by creating new view: `views/authorizme/authorizme/popup.html.erb`.
@@ -70,9 +72,13 @@
You can implement your own provider:
1. Create controller under model `Authorizme::Login` and extend `AuthorizmeController`.
2. You must implement `auth` and `callback` methods, where `auth` is method which redirect user to provider and `callback` get data from provider callback data.
3. Then you must add your provider namespace in authorizme config file in array `providers`.
+
+#### Password reset
+
+Use `/authorizme/password_resets` (if you have another namespace, use `/{your_namespace}/password_resets`) controller to create a password reset token and send it to user. You can overide `send_password_reset_notification` method in user model to send an email with `password_reset_token` . The password reset token will expire after 2 hours.
## Development
Questions or problems? Please post them on the [issue tracker](https://github.com/CreativeMobile/authorizme/issues). You can contribute changes by forking the project and submitting a pull request. You can ensure the tests passing by running `bundle` and `rake`.
\ No newline at end of file