username

Change ${USER} environment variable in Intellij IDEA

烂漫一生 提交于 2019-12-20 05:01:27
问题 Intellij IDEA has class/file templates like this: /** * Created by ${USER} on ${DATE}. */ where ${USER} by default is logged in user name (or licensed user name for Ultimate versions). I need to have name in file templates different from logged in OS user name. How can I change in IDEA this variable? What I can, but this it not what i'm looking for: Change template header directly. NO, I need to change variable for all templates and other usages in the IDE. start IDEA from bat/cmd/lnk

WCF custom userName authentication using HTTP

爱⌒轻易说出口 提交于 2019-12-19 04:07:38
问题 I am trying to configure my WCF service to use a custom username validator over HTTP and my ASP.NET Development server. Following are the parts of the serviceModel... <basicHttpBinding> <binding name="Authentication" > <security mode="TransportCredentialOnly" > <message clientCredentialType="UserName"/> </security> </binding> </basicHttpBinding> <service behaviorConfiguration="ApiBehavior" name="CriticalWatch.AuthenticationAPI.AuthenticationAPI"> <endpoint address="/" binding=

Starting a process with a user name and password

为君一笑 提交于 2019-12-19 02:51:47
问题 I know that you can run a process with a given username/password in the following way: var processInfo = new ProcessStartInfo { WorkingDirectory = workingDirectory, FileName = "a name", UserName = loggedUserName, Password = "password", Domain = userNameDomain, UseShellExecute = false, }; Process.Start(processInfo); The problem I'm facing is that I don't want to write the actual password as a part of the code and the process won't start if I leave the Password attribute empty... How can I

Skype username validation

家住魔仙堡 提交于 2019-12-18 16:52:42
问题 Is there a way to validate that a Skype username is valid in a web app? (form validation upon account creation) By valid I do not mean by using regular expressions. We an easily check to see if it is 6-22 characters, starts with a letter, etc. I want to verify that either 1) the username entered actually calls the user inputting it, similar to when we validate email by sending an email with a link to verify it or 2) verify that there exists in the Skype database a user with that username.

Get the username of the user accessing ASP.NET intranet page within local network

前提是你 提交于 2019-12-18 13:37:43
问题 We have an ASP.NET intranet site, available to users who are either physically at and logged into a local machine or else to users who connect remotely via VPN. Is there a way to automatically get the username of whoever is accessing the page based on the name used to either log into the local machine or that used for the VPN? 回答1: This is possible if you're using Windows Authentication in your pages. You can use either Page.User.Identity.Name or the more complete System.Web.HttpContext

When you auto-create subdomains on user signup does it create a new website or gives appearance of a website?

我是研究僧i 提交于 2019-12-18 12:42:32
问题 I am wondering if subdomains that are created upon signup become websites or do they just give the illusion that they are websites sort of like example.com/username? I am trying to create something like user.domain.com and can't really find something helpful to do it? Is there a way I do it so that i can allow customizations for the account for clients? I need them to be like standalone websites so that i can go and customize them upon client requests, so what is the best way to go about it?

Access user email address in Meteor JS app

妖精的绣舞 提交于 2019-12-18 12:21:38
问题 I am building an app using Meteor and need to access the stored email address of a logged-in user. I am currently using: var userObj = Meteor.user(); console.log(userObj); to access the user. However, I am only able to access the id. The email address is stored in a nested object that looks like this: [Object {address="address@gmail.com", verified=false}] I have tried various ways to traverse the JSON object but can't figure out how to access the value I need. 回答1: Meteor.user().emails[0]

Writing Unit Test for methods that use User.Identity.Name in ASP.NET Web API

痞子三分冷 提交于 2019-12-18 12:03:58
问题 I am writing test cases using the Unit Test for ASP.NET Web API. Now I have an action which makes a call to some method I have defined in the service layer, where I have used the following line of code. string username = User.Identity.Name; // do something with username // return something Now how to I create unit test method for this, I am getting null reference exceptions. I am kinda new to writing unit test and stuff. And I want to use Unit Test only for this. Please help me out on this.

Proper way to send username and password from client to server

白昼怎懂夜的黑 提交于 2019-12-18 10:39:05
问题 This question is not language specific. I'm curious how to properly send username and password from a website login form to a server. My guess is to hash the password, put username/password in the POST body and send it over HTTPS . What's a better way? For good measure I'll mention a less than ideal method: http://www.somesite.com/login?un=myplaintextusername&pw=myplaintextpassword 回答1: The important parts are that you transmit the form data in the POST body (that way it's not cached anywhere

VBA Get Username on OSX (or Mac alternative to Environ(“username”))

☆樱花仙子☆ 提交于 2019-12-18 08:32:33
问题 My task has been to create a secure (Windows version) Excel workbook that uses macros to validate whether a user has permission to view the contents. In Excel 2010 for Windows, I use the Environ("username") function to accomplish this. The problem I'm running into is that some users in the organization use a Mac to do their daily work, and Environ does not work with OSX. Does anyone know of an alternate way to find the username of a Mac? I've looked online but all I can find is how to find