alarner / perk

A well documented set of tools for building node web applications.
http://perkframework.com
MIT License
181 stars 31 forks source link

Add the ability to configure user and authentication table columns #95

Closed alarner closed 7 years ago

alarner commented 7 years ago

The idea here is that instead of being forced to use the specific column names that are gicen by default for the user and authentication tables, you will be able to configure these columns to be whatever you want.

I've updated config/auth.js to include an adapters section (what was there before) and a new columns section. The value of each property in the user and authentication sections within the columns section should correspond with the column name in these tables that you wish to use.

Once updating the config/auth.js file you will need to update the existing migration files or create a new migration to actually add those columns to your table. Once that's done you should be all set with your new column names.