user

how to get email from owner or from gmail account on android

Hi I was wondering how to get the email from the owner of the phone or from the gmail account used on the phone. I am trying to do this on android 1.6 and up. I know its possible because I have seen some apps that get the email. Maybe its undocumented or it reads it from a undocumented provider or some authentication service, but I kn...

Role of Session in user authentication/login?

I was hoping someone could help me with a question I've come up on. I have a Session object that handles storage of general session data, I also have a Authentication object which validates a users credentials. Initially I passed the desired Authentication class name to my Session object then had a login method that created an instance...

Anyone think django's user model is too tightly coupled with auth?

I'm trying to learn Django and I would like feedback from anyone who has any MVC/MTV/PHP/Ruby framework experience. Does anyone find that the user model is too tightly coupled with auth? Background: When you first implement authentication for Django, you include the module django.contrib.auth This will bring in several models like Use...

CakePHP fills in the password field on create new user failure.

I'm getting funny behavior with CakePHP in my register new user form. It's a pretty basic username, email and password form. When the user types out and incomplete form it looks like this: http://imgur.com/fcpS5.png Of course creation of the new user fails because the password and email fields are empty. When the form errors are show...

Help with asp.net mvc users

I have a users table and a company table, Im using linqtosql classes Whats the best way to get the id of the user thats currently logged on so that I can find the company he works for?? ...

Google App Engine - User accounts - Authoriztion - RPX - oAuth

I am at the start of A GOOGLE APP PROJECT. Its tempting to dive straight in and use google accounts as the drive behind security and users. But this would super glue my app to google. I want a fast means to re-secure the pages/site with a users system that works with big page. I want to use RPX for mt poen id - this should be a synch an...

Rails Security: redirect if not current_user

I've been using authlogic and it works really well. One thing I've noticed is that as a hacker I could easily type in this address: localhost::3000/users/a_user_that_is_not_me/edit Since the form in the edit form is for @user which is set to current_user and requires an authenticity token, even if I tried to put in details for the othe...

can't access user control public properties

Hi All I am using VS2008 with both VB.NET and C# I have created a simple custom user control and have added some public functions to it my problem is that if I don't drag and drop the user control from the toolbox onto a winform but instead I try to create one dynamically via code - I am not able to access the public functions and pro...

Should users see their own performance stats in real time.

I know this questions seems extremely open ended. I will try to narrow scope. I have been struggling for some time as to include or exclude real time user performance stats in an application gui. Does anyone have any info on the harm vs gain in including these stats in an app? i.e. number of emails answered, number of customer calls ...

Sharepoint question about UserControl on WebPart

I added UserControl Webpart on the site and got this error: error CS0117: 'ASP._60b6ad6d_6998_4413_8d26_f07e4e897ce8_1417418301' does not contain a definition for 'btnPressMe_Click' It is very simple user control. ...

Check if role consists of particular user in DB?

I am trying to drop user from role in several databases. It is not sure that user can be in same role in all the databases. How can i check if the user is in the role and if it is drop the user from the role. e.g. IF user exists in role BEGIN drop user from role END ...

How to send messages to multiple users?

Essentially I have a basic Java Socket server as you can see below. It allows multiple users to connect and when they send a message to it, it returns it back. However I was wondering how I could edit it so if a user sends a message to it, rather than just sending it back it sends it to everyone connected? So a basic chat server. Any hel...

c# get windows users profile details?

I'm trying to get a detailed list (containing name, size, and last modified) of all user profile on a local machine. I can find the information by going to Computer->Properties->Advanced->(user profiles)Settings and i'm trying to find a way to pull in that information into my c# program. Thanks for the help! ...

How to prevent loading of data when postback fails validation

Hi, I'm trying to prevent data from loading on the page when its needed. Currently, I check the IsPostBack bool to prevent loading data in my user controls which allows the data to be loaded when the page is initially requested. However, if my page fails validation and the page is sent back to the user with error messages, my user con...

Give a user rights to a specific node in Drupal

I'd like the user "student" to be assigned to a content type "Projectgroup". I can do this by adding a user reference to the Projectgroup content type form. Example: Projectgroup = Beta testers Students (user referenced) = Kim, Joel, John. When Kim logs in, she should only be able to post as "Beta testers". How can i make sure when ...

What's a clean way to adorn Django models with request-specific attributes?

I'm serializing User objects to JSON, and I'd like to indicate in the JSON response whether the serialized user is friends with the user making the request. I've added a to_dict() method to my User model that does the pre-processing necessary to serialize the object--that would be a nice place to add an attribute indicating friendship, ...

setting the result of a sql query as a variable inside an if statement in php

Kind of an unclear question but I'm trying to check if a username has been taken or not. The code I have now isn't erroring but it's also not working, when echoing the $username variable I get nothing. $sql="SELECT people_username FROM people WHERE people_username='{$_POST['username']}'"; //Set the result of the query as $username...

WCF get Group of a User

Hi, I wrote a huge application which uses WCF services to do things like read from databases and also to be able to use integrated security. Atm I use the following code to get the current logged on user name: string userName = HttpContext.Current.User.Identity.Name; However I want to be able to get the active directory groups the u...

Extract login user name from Filemaker-published XSLT pages

I have published a layout in XSLT format with Filemaker. When a user access this page, he will be prompted for his login details. I want to display his login details after he logged in successfully. How do I accomplish this? ...

Does the same windows service run per-logged in user?

I'm building a Windows service that performs different actions based on which Windows user is logged in. If I install my service under one user, and set it to start-up, will a separate instance of it run for each user that logs in, continuing to run, even if more than one user is currently logged in? This is the behavior I would like, b...