This is a updated guide aimed to support Phoenix 1.3 and Guardian 1.0
We need to generate secret key for development environment.
mix phx.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf| /** | |
| * $.parseParams - parse query string paramaters into an object. | |
| */ | |
| /*jshint regexp: false */ | |
| (function($) { | |
| var re = /([^&=]+)=?([^&]*)/g; | |
| var decodeRE = /\+/g; // Regex for replacing addition symbol with a space | |
| var decode = function (str) { return decodeURIComponent( str.replace(decodeRE, " ") ); }; | |
| $.parseParams = function(query) { | |
| var params = {}, e; |