membership

How to update last login date if “Remember Me” set?

旧城冷巷雨未停 提交于 2021-02-07 18:39:41
问题 When a user logs in to my site, the date of the visit is stamped in the database (User table). This is handled by the (custom) membership provider. However, if the user checks the "Remember me?" option when logging in, they are (naturally) not prompted to log in on subsequent visits. As the membership provider is not employed in this situation, the last login date is not updated in the database. Using forms authentication, how can I ensure that the last login date is updated on each new visit

Microsoft Graph API throwing exception

你。 提交于 2020-05-17 07:05:53
问题 since two days I get an exception calling : var usersInGroup = await graphClient.Groups[groupid].Members.Request().GetAsync(); { "error": { "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation.", "innerError": { "request-id": "4069215a-945f-4cc0-abbf-132d703f55ae", "date": "2020-04-28T08:18:49" } } } This call always worked before and proper permissions are given and consented. Is there any known issue with this API / service ? Any easy way to

Microsoft Graph API throwing exception

荒凉一梦 提交于 2020-05-17 07:05:30
问题 since two days I get an exception calling : var usersInGroup = await graphClient.Groups[groupid].Members.Request().GetAsync(); { "error": { "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation.", "innerError": { "request-id": "4069215a-945f-4cc0-abbf-132d703f55ae", "date": "2020-04-28T08:18:49" } } } This call always worked before and proper permissions are given and consented. Is there any known issue with this API / service ? Any easy way to

ASP.NET Membership ChangePassword control - Need to check for previous password

帅比萌擦擦* 提交于 2020-02-23 11:52:18
问题 I have a new table that hold old passwords, I need to check if there is a match. If there is a match I need the ChangePassword contol to NOT change the password. I need to tell the user that this password was used and pic a new one. I can't seem to be able to interrupt the control from changing the password. Maybe I am using the wrong event. Here is a piece of my code, or how I wish it would work. I appreciate all your help. protected void ChangePassword1_ChangedPassword(object sender,

Is it possible to share an existing asp.net applications membership database with sharepoint 2010's, when using Forms based authentication

荒凉一梦 提交于 2020-02-03 15:37:05
问题 I am trying to integrate an existing asp.net application with sharepoint 2010. I would like to be able to have a logged in user on the application access a document library via an Iframe on the sharepoint 2010 site. I want to use FBA on sharepoint. Is it possible to share the membership database from the asp.net application with sharepoint? If not, what would be the best way to accomplish this? 回答1: The databases are identical so there is no reason you can't point the SharePoint FBA

Django - How to save m2m data via post_save signal?

妖精的绣舞 提交于 2020-01-19 05:13:25
问题 (Django 1.1) I have a Project model that keeps track of its members using a m2m field. It looks like this: class Project(models.Model): members = models.ManyToManyField(User) sales_rep = models.ForeignKey(User) sales_mgr = models.ForeignKey(User) project_mgr = models.ForeignKey(User) ... (more FK user fields) ... When the project is created, the selected sales_rep , sales_mgr , project_mgr , etc User s are added to members to make it easier to keep track of project permissions. This approach

Django - How to save m2m data via post_save signal?

陌路散爱 提交于 2020-01-19 05:12:05
问题 (Django 1.1) I have a Project model that keeps track of its members using a m2m field. It looks like this: class Project(models.Model): members = models.ManyToManyField(User) sales_rep = models.ForeignKey(User) sales_mgr = models.ForeignKey(User) project_mgr = models.ForeignKey(User) ... (more FK user fields) ... When the project is created, the selected sales_rep , sales_mgr , project_mgr , etc User s are added to members to make it easier to keep track of project permissions. This approach

Xcode: target membership of frameworks?

余生长醉 提交于 2020-01-05 08:16:19
问题 I have a question about the far right column of your Xcode project (image here) Apple's documentation tells me this about that column: Target membership. The column marked by the target icon indicates whether the file is included in the active target. If the checkbox next to a file is checked, then the active target includes that file. So what if I have #import <Security/Security.h> in my .m file, do I still need to link it with the target membership? What if a .m file has that and it's not

Hashed passwords and PasswordRecovery control

瘦欲@ 提交于 2020-01-02 07:25:16
问题 1) firstUser was created when membership module had requiresQuestionAndAnswer set to false, while secondUser was created when requiresQuestionAndAnswer was set to true. If we try to recover pwd via PasswordRecovery PR control and we set requiresQuestionAndAnswer to true, then PR doesn’t email password to firstUser, but it does to secondUser. If we set requiresQuestionAndAnswer to false, then PR does email pwd to secondUser (it skips the question/answer stage). But why doesn’t PR also email

What is the purpose of Membership.ValidateUser()

喜夏-厌秋 提交于 2020-01-02 03:12:25
问题 I've been learning about the MembershipProvider class and I thought that the Membership.ValidateUser() method was supposed to be used to to log a user in. However, I just learned that there is a FormsAuthentication.Authenticate() . What is the purpose of ValidateUser() within Membership ? 回答1: In short, there are times when you might want to simply validate that a user is who they say they are without needing to persist an authentication cookie for any length of time. 回答2: It only check your