creation authorization in MVC3 app with MySQLhttp://forums.asp.net/t/1798017.aspx/1?creation+authorization+in+MVC3+app+with+MySQLSat, 28 Apr 2012 14:25:43 -040017980174956178http://forums.asp.net/p/1798017/4956178.aspx/1?creation+authorization+in+MVC3+app+with+MySQLcreation authorization in MVC3 app with MySQL <p>Hi all!!!</p> <p><span id="result_box" lang="en"><span class="hps">There is</span> <span class="hps"> a remote database</span><span> MySQL.</span><br> <span class="hps">Connecting</span> <span class="hps">my MVC3 application</span> <span class="hps"> to those database</span><span>, I</span> <span class="hps">have</span> <span class="hps"> realized</span><span>.</span><br> <span class="hps">also I created a</span> <span class="hps">model using the</span> <span class="hps">Entity</span> <span class="hps">Fraemvork</span> <span class="hps"> by selecting</span> <span class="hps">a table: subscribers.</span><br> <span class="hps">I must perform</span> <span class="hps">the task</span><span>:</span></span></p> <pre>Create login page with username/password checked from </pre> <pre>Table: subscribers fields: email &amp; Password</pre> <p><span id="result_box" lang="en">I<span class="hps">n the pattern</span> <span class="hps"> MVC3 application already</span> <span class="hps">has a mechanism for</span> <span class="hps"> authorization</span> <span class="hps">and registration.</span><br> <span class="hps">How do I</span> <span class="hps">relate</span> <span class="hps"> this mechanism</span> <span class="hps">to an existing</span> <span class="hps">table- <span id="result_box" lang="en"><span class="hps">subscribers</span></span></span><span>?</span></span></p> 2012-04-28T11:56:41-04:004956225http://forums.asp.net/p/1798017/4956225.aspx/1?Re+creation+authorization+in+MVC3+app+with+MySQLRe: creation authorization in MVC3 app with MySQL <p>Oh yea, I totally missed what you were asking for...</p> <p>So yes, look into <a href="http://msdn.microsoft.com/en-us/library/ff647070.aspx"> Forms authentication</a> and check your Db for valid credentials from users. Using memberhsip is not a requirement for using Forms authentication. Only use membership if it benefits you.</p> <p></p> 2012-04-28T13:09:17-04:004956269http://forums.asp.net/p/1798017/4956269.aspx/1?Re+creation+authorization+in+MVC3+app+with+MySQLRe: creation authorization in MVC3 app with MySQL <p>You need to create custom Membership Provider. It's not hard. Complete example:&nbsp;<a href="http://kitsula.com/Article/Custom-Membership-Provider-for-MVC" title="Custom Membership Provider for MVC">http://kitsula.com/Article/Custom-Membership-Provider-for-MVC</a></p> 2012-04-28T14:25:43-04:00