KarthikElumalai / ETokenSln

E-Token is an online queue management system which reduces waiting time on queue, by providing live update about queue status in electronic gadgets.
https://docs.google.com/document/d/17VGdqFPdmcJriHd8aXy-ymutrQ4LejnVDnfiH8N8hms/edit
10 stars 6 forks source link

Create a Login Controller #11

Closed KarthikElumalai closed 5 years ago

KarthikElumalai commented 5 years ago

Create action methods for Login (get and Post Methods), include session variables to track the users.

nilanjansen commented 5 years ago

@giribabuzee Please add three Controller Action JsonResult SendOtp(); have a session variable called OtpValue. The EnterOtp will be outing the otp and returning the staus. Catch both value here. ActionResult EnterOtp(){return view;}// this will simply return the view to the customer to enter the otp.

JsonResult VerifyOtp(string otp) // catch the value entered by the user here , in this call the VerifyOtp(otp,sessionotp), send both the values for verification and catch the result in boolean.

nilanjansen commented 5 years ago

everyone JsonResult is obsolete in .net core. Please use actionresult and find ways to return json to ajax. Part of R&D.

nilanjansen commented 5 years ago

@giribabuzee I have checked in the basic version of the code. Please verify and optimize the code.

KarthikElumalai commented 5 years ago

Hi

@giribabuzee As nilanjan mentioned above, kindly verify this and provide your views

If everything looks good, please close this

Thanks

KarthikElumalai commented 5 years ago

Hi Team ,

Closing this task, since it has been completed

Thanks Karthik