username

Changing username and password of fiddler proxy server

十年热恋 提交于 2019-11-30 20:25:13
I'm using Fiddler to setup a proxy server, but when enabling "Require Proxy Authorization" under the rules menu the username/password is always 1. How do I change the username/password? I tried changing oSession["X-AutoAuth"] = "username:password"; but it doesn't change the proxy credentials required. Can't find anything in the documentation regarding this... The X-AutoAuth flag concerns what credentials Fiddler sends to an upstream server when automatically replying to an authentication challenge; it has no impact on what credentials are demanded of the user. This question was original asked

Checking if username already exists within the databasae [closed]

随声附和 提交于 2019-11-30 20:07:11
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . i am trying to check against the database table "user" to see if the "username" exists so that the same username cannot be created again. I want this to be a validator so if the username exists the message box

How to get username with vbs

自闭症网瘾萝莉.ら 提交于 2019-11-30 18:18:48
So i'm trying to move a .vbs file with .movefile line and i want to give the .vbs to me friends but in order it to work I would have to know what their username is. what would I put to make the .vbs know their username Ex "C:\users\username\desktop" To get the username of the person currently logged in: strUser = CreateObject("WScript.Network").UserName In VBScript you can get the path to the current user's desktop folder via the SpecialFolders collection: WScript.Echo CreateObject("WScript.Shell").SpecialFolders("Desktop") strName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" ) That would

MongoDB - Error: document must have an _id before saving

删除回忆录丶 提交于 2019-11-30 17:46:55
I've been struggling so much with this project. I am following a tutorial that is out of date in some areas, for instance their version of Jquery used a totally different format for some functions and I had to do a lot of changing around. But I think I am down to one last major problem that I can't seem to find a fix for. In my Schema variable I've got the _id, username, and password types var UserSchema = new mongoose.Schema({ _id: mongoose.Schema.ObjectId, username: String, password: String }); but when I go to try to add a new user to my app, instead of getting the alert I am supposed to

username & password in sqlite3

流过昼夜 提交于 2019-11-30 17:11:50
I am using sqlite3 in a linux machine and I am getting the database without username and password. Can I set a username and password for the same? No, sqlite3 databases are very lightweight systems. They need no server and all data is stored in one file. A username/password is not supported by the sqlite/sqlite3 package. In order to achieve simplicity, SQLite has had to sacrifice other characteristics that some people find useful, such as high concurrency, fine-grained access control , a rich set of built-in functions, stored procedures, esoteric SQL language features, XML and/or Java

Can I change the USERNAME_FIELD in Django 1.5 without creating a custom user?

删除回忆录丶 提交于 2019-11-30 16:55:31
问题 I am trying to use the email field in the default Django user model as the username. I am using Django 1.5 and I saw that the default user has a USERNAME_FIELD property. In my project, I would like to set the following USERNAME_FIELD = 'email' as a default in the user model. This small but fundamental tweak is the only thing I would like to change in the user model. I was wondering if there is a way of changing the USERNAME_FIELD without having to subclass the AbstractUser. I saw in this

Creating a login system in PHP

谁都会走 提交于 2019-11-30 12:58:50
问题 Can someone please help me? My username is Blimeo and my password is "password" but when I put my credentials in, it says "Access denied" like I told it to. I am 100% sure that I configured my mySQL database correctly. <html> <body> <?php echo sha1('Blimeo'); if (isset($_REQUEST['attempt'])) { $link = mysql_connect('localhost', 'root', 'password') or die('Could not connect to database'); $user = mysql_real_escape_string($_POST['user']); $password = sha1(mysql_real_escape_string($_POST[

Should Unicode be allowed in usernames?

拜拜、爱过 提交于 2019-11-30 12:23:59
问题 Why do most (all?) websites only support usernames in ASCII? Are there any security considerations if an admin decides to start accepting Unicode usernames? 回答1: Homoglyph attacks. User 'cat' and 'сat' are different unicode strings although they look the same. The first letter in the second 'сat' is Russian 'с' - "CYRILLIC SMALL LETTER ES" to be exact. The system can't easily tell that you're spoofing another user's name - to the computer the nicks are different. Edit: Preventing mixed

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

牧云@^-^@ 提交于 2019-11-30 10:15:14
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? 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.Current.User.Identity.Name . Read more about it here: Enabling Windows Authentication within an Intranet ASP.NET

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

有些话、适合烂在心里 提交于 2019-11-30 06:03:53
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. Thanks. The below one is only one way of doing this: public class FooController : ApiController { public