In the Inline Ajax login.js file, I noticed it wasn't creating new tokens for the node form, which lead to validation errors after logging in through this module. This is due to the fact that the node type was not being caught in my set up. I am using a Node reference widget that grabs the nid off the URL (something like node/add/review/100).

The JS is using 100 as the node type instead of 'review'.

Got get around this I have adjusted the JS to this:

Around line 280:
FROM:
var action = $('form#node-form').attr('action').split('/').pop();

TO:
var action_parts = $('form#node-form').attr('action').split('/');
var type = action_parts[3];

with a similar change around line 313.

Comments

ManyNancy’s picture

That would not work for people who doesn't have node/add as the post url (suburl module).