28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
@{
|
|
WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
|
|
|
|
// 若要讓此網站的使用者使用其他網站 (如 Microsoft、Facebook、Twitter) 的帳戶登入,
|
|
// 您必須更新此網站。如需詳細資訊,請瀏覽 https://go.microsoft.com/fwlink/?LinkID=226949
|
|
|
|
//OAuthWebSecurity.RegisterMicrosoftClient(
|
|
// clientId: "",
|
|
// clientSecret: "");
|
|
|
|
//OAuthWebSecurity.RegisterTwitterClient(
|
|
// consumerKey: "",
|
|
// consumerSecret: "");
|
|
|
|
//OAuthWebSecurity.RegisterFacebookClient(
|
|
// appId: "",
|
|
// appSecret: "");
|
|
|
|
//OAuthWebSecurity.RegisterGoogleClient();
|
|
|
|
//WebMail.SmtpServer = "mailserver.example.com";
|
|
//WebMail.EnableSsl = true;
|
|
//WebMail.UserName = "username@example.com";
|
|
//WebMail.Password = "your-password";
|
|
//WebMail.From = "your-name-here@example.com";
|
|
|
|
// 如需了解如何最佳化網站中的指令碼與樣式表,請前往 https://go.microsoft.com/fwlink/?LinkID=248973
|
|
} |