user-accounts

Create environment variables for a new user in C#

丶灬走出姿态 提交于 2019-12-01 06:41:19
We are trying to build an installer, in Wix, for a product. Part of this product requires the installation of elasticsearch as a service, and getting it running as a service. The service should run under a separate user account. The first step, getting the user account set up, has been successful. However, in order to allow elasticsearch to run correctly, we need to set up certain Environment variables. In order to reduce the chance of inadvertent user error, we will have to have these variables set under the elasticsearch user, not as machine-wide. To this end, we need a way to create the

How can I customize the login screen for Windows Vista & 7?

社会主义新天地 提交于 2019-12-01 06:22:41
I need to create a windows login UI for Windows 7 & Vista which logs user name and image from webcam (replacing their login screen). I don't know where to start from. Can I do this in C# or will I have to use C++? Any link will be helpful. If you just need Windows 7 and Windows Vista support, you are looking for Credential Provider. You can find some samples in Windows SDK. If you want to extend pre-Vista Windows, you are looking for GINA 来源: https://stackoverflow.com/questions/4516578/how-can-i-customize-the-login-screen-for-windows-vista-7

How can I customize the login screen for Windows Vista & 7?

痴心易碎 提交于 2019-12-01 05:42:11
问题 I need to create a windows login UI for Windows 7 & Vista which logs user name and image from webcam (replacing their login screen). I don't know where to start from. Can I do this in C# or will I have to use C++? Any link will be helpful. 回答1: If you just need Windows 7 and Windows Vista support, you are looking for Credential Provider. You can find some samples in Windows SDK. If you want to extend pre-Vista Windows, you are looking for GINA 来源: https://stackoverflow.com/questions/4516578

How to make sign-up invitation only?

假如想象 提交于 2019-11-30 13:38:33
Using Meteor accounts (and accounts-ui ) is there an easy way to make new user sign-ups invitation only? For example by providing an invitation link or an invitation code. The only thing related I could find in the Meteor documentation is Meteor.sendEnrollmentEmail but it doesn't solve my problem. nathan-m You can do this with the built in package, but I found it alot easier and powerful to roll a simple implementation. You'll need to: Create a collection, eg UserInvitations to contain the invites to become a user. Create UI for making UserInvitations / insert some using meteor mongo Using

How come my Meteor app with accounts package is not sending a verification email?

最后都变了- 提交于 2019-11-30 12:37:34
I am making a meteor app and I have the mrt accounts-password package added as well as mrt accounts-ui-bootstrap-dropdown. I have added the loginbuttons so users can create an account and that works just fine. I am using all defaults. On the server I have the code: Accounts.config({ sendVerificationEmail: true, forbidClientAccountCreation: false }); And when I create a new account, the server console prints: I20130821-18:31:42.105(-4)? ====== BEGIN MAIL #0 ====== I20130821-18:31:42.106(-4)? MIME-Version: 1.0 I20130821-18:31:42.107(-4)? From: "Meteor Accounts" <no-reply@meteor.com> I20130821-18

How can I get the active user name in a SYSTEM process using C++?

偶尔善良 提交于 2019-11-30 05:59:51
问题 I have used GetUserName() METHOD , but the username it returned is 'SYSTEM' in a SYSTEM process.How can I get the active username in a SYSTEM process? THIS IS MY CODE: void getComputerUsername(char * username,char * domainname) { HANDLE hp , htoken; char buff[1024]; unsigned long size = 1024; TOKEN_USER *tuser; PSID sid; TCHAR * user = new TCHAR[256]; TCHAR * domain=new TCHAR[256]; SID_NAME_USE snu; hp = htoken = INVALID_HANDLE_VALUE; hp = GetCurrentProcess(); if(OpenProcessToken(hp, TOKEN

asp.net core mvc password validators

 ̄綄美尐妖づ 提交于 2019-11-29 18:41:11
问题 What is the easy way to customize password validation rules in asp.net core MVC? The problem is exactly like someone had here How To Change Password Validation in ASP.Net MVC Identity 2? the only difference is that I'm using asp.net CORE MVC (latest build) with Visual Studio 2015. I'd like to remove all password validation rules. There is no ApplicationUserManager class in the project, also I'm not sure if it's possible to customize UserManager validation rules in the Startup.cs file. 回答1: If

How come my Meteor app with accounts package is not sending a verification email?

懵懂的女人 提交于 2019-11-29 17:46:53
问题 I am making a meteor app and I have the mrt accounts-password package added as well as mrt accounts-ui-bootstrap-dropdown. I have added the loginbuttons so users can create an account and that works just fine. I am using all defaults. On the server I have the code: Accounts.config({ sendVerificationEmail: true, forbidClientAccountCreation: false }); And when I create a new account, the server console prints: I20130821-18:31:42.105(-4)? ====== BEGIN MAIL #0 ====== I20130821-18:31:42.106(-4)?

Adding Local User to Local Admin Group

試著忘記壹切 提交于 2019-11-29 12:58:13
问题 I am writing a C# program to be pushed out the labs I work in. The program is to create a local admin account(itadmin), set the password, set the password to never expire, and add the account to the local Administrators group. The program creates the new user account and sets everything correctly but when it attempts to add it to the admin group I get a very nondescript exception. Do I have the add to group correct in the first place? What am I missing? using System; using System.Collections

Account verification: Only 1 account per person

夙愿已清 提交于 2019-11-29 02:50:10
问题 In my community, every user should only have one account. So I need a solution to verify that the specific account is the only one the user owns . For the time being, I use email verification . But I don't really need the users' email adresses. I just try to prevent multiple accounts per person. But this doesn't work, of course. People create temporary email addresses or they own several addresses, anyway. So they register using different email addresses and so they get more than one account