ddspringle / framework-one-secure-auth

An example fw/1 application with secure single and two-factor (2FA) authentication and session management functions
Apache License 2.0
31 stars 5 forks source link

Process registration not complete? #14

Closed Daemach closed 5 years ago

Daemach commented 5 years ago

It looks like the process controller is truncated - what happens to the user object at this point and how is the view set? https://github.com/ddspringle/framework-one-secure-auth/blob/master/home/controllers/main.cfc

ddspringle commented 5 years ago

Framework One (fw/1) is an MVC (Model, View, Controller) pattern that relies on convention over configuration. When 'process' is called it collects the registration data passed in the registration form, sets it into rc.userObj if it meets all required conditions, persists that user data back to the database with the userService.save() method and then fw/1 looks for and displays the 'process' view (https://github.com/ddspringle/framework-one-secure-auth/blob/master/home/views/main/process.cfm) automatically.

Carl has some great primers (and related presentations at conferences) on MVC basics. Have a look at this repo here: https://github.com/cfvonner/Intro-to-MVC-ColdFusion which might be a good place to start digging into ColdFusion MVC concepts.