username

ASP.NET membership spaces in username

Hi, We just came across a weird bug in our application that uses the asp.net membership. The administrator had created some users with spaces behind their name: 'My Username ' In the Users table this is saved normally, so without the spaces: 'My Username' The user can also login using the name without the spaces: 'My Username' When...

Ajax in UserControl

Hi i have a signup page and i want to check username exists or not with ajax <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Simple.ascx.cs" Inherits="UserControls_Simple" %> نام کاربری: کلمه عبور i eant to show label if user exists how can i do that? tnx ...

How can I get the google username on Android?

I've seen references to using the AccountManager like http://stackoverflow.com/questions/2245545/accessing-google-account-id-username-via-android but it seems like it's for grabbing the authtoken? I just need access to the username, no passwords or any auth tokens. I'm using android 2.1 sdk. ...

Allow search engine to crawl usernames

Hi, I have a site where users can enter their profile and password-protect certain details. I would like search engines to crawl the 'unprotected' parts of the profile (which varies from user to user). Similar to how if you enter a user's name in facebook, their Facebook profile comes up in the search results. Do I have to do anything ...

Sharepoint site continuously propmting for username and password

Hi, A particular sharepoint web application(site collection) is continuously prompting for username and password indefinite times and not letting the users to view the application properly. But when we add the users to Farm Administrators, the web application(site collection) is working fine. But ideally, we can’t add all users to Far...

C# copy file to another directory using other domain/username/password

Hello, In c# 2008, I'm trying to copy a file to a destination path (for example \newserver\destinationFolder), that can be in another domain or using a different username/password than the current user. How can I specify these new network credentials before doing the File.Copy(...) ? Thank you! ...

How to get the default gmail user name and password of one android cell phone

How to get the default gmail user name and password of one android cell phone during developing android program. ...

Android: get the default gmail username and password

Now I am doing a android porjct. The project needs get the default username and password of Android phone. I don't know how to get the default gmail information of one Android Cell Phone. Can u help me. Thx. ...

Sending username and password to web service

I am developing a web service and I need to send a username and password to the service in a GET method. Is it OK to send this information in the uri as long as it's going over a secure channel like ssl? In other words, can I have a uri that looks like /users/{username}/{cleartext_password}? Edit: Sorry, I think I was unclear. The web s...

Check username for invalid characters

How do you check if a username contains invalid characters? I want to restrict each users username with PHP to having numbers, letters, and underscores. ...

Disabling email-style usernames in Django 1.2 with django-registration

Django 1.2 allows usernames to take the form of an email address. Changed in Django 1.2: Usernames may now contain @, +, . and - characters I know that's a much-requested feature, but what if you don't want the new behavior? It makes for messy usernames in profile URLs and seems to break django-registration (if a user registers a...

Get Windows username with JavaScript?

I am working a Firefox addon (which is written in JavaScript) and need to determine the Windows user currently logged on. Is there a way to do this? ...

Is it possible to build a system that has no restrictions on username?

If yes, then why are simple characters like dots (.) and underscores (_) not allowed in some services? Generally, as a developer, what should we look out for when we make the decision of which characters should/shouldn't be allowed in usernames and other text fields? An example: It is frustrating to see the username Senthil already exi...

WCF client encrypt message to JAVA WS using username_token with message protection client policy

I am trying to create a WCF client APP that is consuming a JAVA WS that uses username_token with message protection client policy. There is a private key that is installed on the server and a public certificate file was exported from the JKS keystore file. I have installed the public key into certificate store via MMC under Personal cert...

django username in url, instead of id

Hello, in a mini virtual community, i have a profile_view function, so that i can view the profile of any registered user. The profile view function has as a parameter the id of the user wich the profile belongs to, so that when i want to access the profile of user 2 for example, i call it like that: http://127.0.0.1:8000/accounts/profi...

Magento : How do i echo username

Hello I use the modern theme I have a livechat button on the header and i want to parse informations in my template This is the livechat button : <!-- http://www.LiveZilla.net Chat Button Link Code --><a href="[removed]void(window.open('http://xxxxxx.fr/livezilla.php?code=BOUTIQUE&amp;amp;en=&lt;!!CUSTOMER NAME!!>&amp;ee=<!!!CUSTOMER...

Get Visitor's Windows Username in C#

Hi all. Fairly new to ASP.Net and I would appreciate some help. Is there a way to get a website visitor's Windows NT user name without forcing them to log in? The only thing I can seem to be able to get is the username of who is logged in on my web server. For example, John Doe's windows logon name is jdoe and Joe Smith's name is jsm...

How do I retrieve the username that a Windows service is running under?

Given a service name, I would like to retrieve the username that it runs under (i.e. the username shown in the 'Log On' tab of a service's properties window). There doesn't appear to be anything in the ServiceController class to retrieve this basic information. Nothing else in System.ServiceProcess looks like it exposes this information ...

How to debug Validate(...) function at server side?

I am using wsHttpBinding with custom username authentication. Thus, I had override Validate(string userName, string password) function of the UserNamePasswordValidator class. My Validate(...) like this: public override void Validate(string userName, string password) { if (userName.Equals(string.Empty) || password.Equals(stri...

Get Windows user name - different methods

In .NET there appears to several ways to get the current Windows user name. three of which are: string name = WindowsIdentity.GetCurrent().Name; or string name = Thread.CurrentPrincipal.Identity.Name; or string name = Environment.UserName; What's the difference, and why choose one method over the other? Are there any other ways?...