bnoguchi/everyauth — Issue #205: question about respondToLoginSucceed and respondToRegistrationSucceed
Author: toxin20
Created: 2012-03-07 23:15:40+00:00
State: open

in the documentation you can find this example:

```javascript
everyauth.password
.respondToLoginSucceed( function (res, user, data) {
if (user) {
this.redirect(res, data.session.redirectTo)
}
})
.respondToRegistrationSucceed( function (res, user, data) {
this.redirect(res, data.session.redirectTo)
})
```
but when i try

```javascript
everyauth.password
.respondToLoginSucceed( function (res, user, data) {
{
```

i get the error "TypeError: Object #