back soft

مطالب مرتبط با «user» در back soft | نویسنده: استخدام کار

how to check user id is verified or not graph api

Vote count: 0 i want check user verified his/her email,phone or not using verified tag i am trying to delete all non verified user on my site i was use this code but it does not work for me please take a look $result = mysql_query("SELECT * FROM token_all"); if($result){ while($row = mysql_fetch_array($result)) { $token = $row[token]; $userData = json_decode(file_get_contents('https://graph.facebook.com/me?fields=name,id,verified&access_token='.$token.''),true);print($userData[name]).''; if(!$userData[verified]){ $i++; mysql_query(" DELETE FROM token_all WHERE token='" . mysql_real_escape_string($token) . "' "); } } } echo $i; ?> asked 30 secs agoRiyaz saifi Let's block ads! بخوانید...

ادامه مطلب

Select feeds without blocked users

Vote count: 0 I'm searching for sql that will retu all feeds without blocked users feeds. for example i blocked someone it will show me all feeds without that persons feeds. and will not show him my feeds. i have 3 table. 1 table is users table that contains all users information. second table is user_follow table that contains users follow with rows follow_from, follow_to and blocked. if blocked is 1 it means that person blocked you. and third table is feeds_table that contains users_id, text and date in php i am sending current logged user user_id. asked 57 secs agoRustamzade Mahammad Let's block ads! بخوانید...

ادامه مطلب

WebEx XML API create user account for meeting

Vote count: 0 I'm using XML API to create meetings, and i want to also create user accounts for that meeting so that user can just click on join link and get in (without the need to register). There are two options from what i can see in documentation, CreateMeetingAttendee which only adds user details to meeting without sending mail to that user with join details, and RegisterMeetingAttendee that updates user status and sends email notification. I'm scheduling meeting like this: public string CreateMeeting(string name, string password, string start, string duration, string registrationNeeded) { var xmlAuthBodyContent = new StringBuilder() .AppendLine("") .AppendLine("") .AppendLine("" + pas...

ادامه مطلب

Connecting to SQL Server through Active Directory user in Azure Virtual Machine

Vote count: 0 I am a beginer in Azure and i have been trying to accomplish below scenario task:I have created two Virtual Machine say vm1 and vm2. Virtual Machine(vm1) where I have have installed ADDS(Active Directory Domain Service): Window server 2012 R2 Domain Name: Say: TestDomain , ip:10.0.0.79user : testuser@TestDomain.onmicrosoft.comIn Virtual Machine(vm2), i have installed Ms-SQL server 2015 is ruing and have database on it. Then I have added the Domain name and configure DNS on vm2 with respect to vm1(use same domain name:TestDomain and ip:10.0.0.79) In vm2, from MS-SQL, login with windows authenticaton mode,then Security >> Logins: Right click new user then Search(user: testuser@Te...

ادامه مطلب

Tracking geolocation of other users using google maps in real time

Vote count: 0 Since most browsers has HTML5 enabled, tracking the current device and displaying it on the map is possible, however, is there a function for a webapp based device, to update a central database on it's location? My theory is that a user can POST a form to upload it's co-ordianates, but this would cause it to be slightly of an hassle. Is there a way, preferably automated, to track a user's geolocation in real time, through a web app? Before all the downvotes come in, I would like to clarify that yes, I am able to track myself and get geolocation working on my device. What my intention is, is to track others and receive the value, something like a tracker. asked 1 min agoC.oast L...

ادامه مطلب

WAP to enter user name and gender to find out is Mr. or Mrs. using condition statement to display hello mr. ___ or hello mrs. ____ [C PROGRAMMING]

Vote count: -4 Title says it all please make sure you submit code in C only =) already tried using name char [30] but cant mix it with else/if condititons. Thank You iC. edited 21 secs agoFUZxxl asked 1 min agoiCastiel Let's block ads! بخوانید...

ادامه مطلب

Firebase console - Auth - user signed up but not verified e-mail

Vote count: 0 I've set-up a Firebase project which I am using for it's user authentication module. I am also using the firebaseui-web project from Github. My redirect on sign-on is working fine per this code: // FirebaseUI config. var uiConfig = { 'signInSuccessUrl': 'MY_REDIRECT.html', 'signInOptions': [ firebase.auth.EmailAuthProvider.PROVIDER_ID ], // Terms of service url. 'tosUrl': '', }; When the page loads (i.e. MY_REDIRECT.html) I'm checking the status of the user to see if they have verified their e-mail, and if not then invoke the sendEmailVerification method: checkLoggedInUser = function() { auth.onAuthStateChanged(function(user) { if (user) { // is email verified if(user.emailVeri...

ادامه مطلب

Trying to display a certain String in an array after user input

Vote count: 0 I am super new to Java and having trouble with getting the output right. I am setting up an array and then asking the user to give me the number of the message they want displayed. So I see what it is doing. If I enter the number 5 expecting to have it display the 5th line, it will not do it but have me instead enter 5 numbers and then display the 5th line. I caot figure out why it is doing this. I'm also supposed to wrap this whole thing in a method called shoutOutCaedMessage() and I'm not sure how to do this since I have already done it without that. I literally just started leaing Java like two weeks ago. Thanks for any help. I'm going to continue testing and trying but thou...

ادامه مطلب

How to redirect user to a page after login in .Net MVC?

Vote count: 0 I wanted User to write a generic post with image and location and then when he clicks on share post, he should be redirected to login screen. After he logs in, he should be directed on to the post/details/id page directly. Plz help. asked 1 min agoShalin Jirawla Let's block ads! بخوانید...

ادامه مطلب

Differentiate between default image and user image from google/FB response

Vote count: 0 Is there a way to differentiate between default image and user image from google/FB response? what I want is to display it(the image) as a profile pic of that user only if a user has one in Google/FB (not the default pic provided by them like this one) thanx in advance any help will be appreciated asked 1 min agoVishAl Let's block ads! بخوانید...

ادامه مطلب

Cant loop through users to send them individual message FB.ui()

Vote count: 0 I am looking for a way to send messages to multiple people without creating group chats and I have been on this for two days now. I am trying to use a little hack where it loops through and ID list and basically takes values in an array and loops through them so one by one it sends a message. Basically, one ID sends message, then it loops back second ID sends message and so on until all parties have received a message. Here is my code so far tl1.addEventListener("click", function() { //Send Message try { var users = ['100008601850848', '100002242788752']; for (var i = 0; i < users.length; i++) { FB.ui({ app_id: '1226220854077249', method: 'SEND', link: 'https://developers.faceb...

ادامه مطلب

Convert double value user input into words in Java

Vote count: -1 Is there a way to convert double value into words using not much code? Read several questions about it here,but the solutions there seem to be too long and inefficient asked 4 mins agoKirill Khlamov Let's block ads! بخوانید...

ادامه مطلب

JavaFX - Adding a ScrollPane popup which closes when user clicks out of it

Vote count: 0 My title is badly worded because my problem is very hard to describe, so I drew an image for it: I have an ImageView object which represents a pile of cards (not poker cards but just used them as an example). When this image view is clicked, I need a window to popup that features a ScrollPane and shows them all the card objects that are in the linked list. When the user clicks anywhere outside of the window (and later on, any right mouse button click) to close this informative window. Ways that I have already tried: Scene with APPLICATION_MODAL. Then did Scene.showAndWait(). I didn't like this method because it made another application on the user's taskbar. It also felt clunky...

ادامه مطلب

Python - matching algorithm - matching users based on accelerometer, location, & time

Vote count: 0 I'm writing an app that is supposed to have a Bump (like the Bump API) interaction. Two users will bump their phones and then the app will share their information with the other person. The app sends accelerometer, location, and time data to an endpoint (/bump-match). But I'm not sure where to begin with my matching algorithm. The backend is written in Flask. And I'm wondering maybe I should use Firebase? When a request is sent to my endpoint, should I just store the data in my database then query the database for an event that's occurred in the same location, time, and with similar accelerometer data? Any help/direction would be useful! Happy to clarify. asked 45 secs agoeinfa...

ادامه مطلب

Steam WebAPI AuthenticateUser

Vote count: 0 How to auth user via https://api.steampowered.com/ISteamUserAuth/AuthenticateUser/v0001 api method? For example, I will get steam public key data from https://steamcommunity.com/login/getrsakey/, do some encryption and then send this data to specified api url as POST. But server retus '403 Forbidden' everytime. My code example: from Crypto.Cipher import AES from Crypto.Cipher.PKCS1_v1_5 import PKCS115_Cipher from Crypto.PublicKey import RSAenter code here from Crypto.Random import get_random_bytes import hashlib import json import requests steamid = '' steampass = '' loginkey = hashlib.md5(bytes(steampass, 'utf-8')).hexdigest() blob32 = get_random_bytes(32) getrsa_url = 'https:...

ادامه مطلب

Where should I add a List All Users function when using MVC?

Vote count: 0 I'm aware that in MVC, the Model is the class part. If I have a User class and instantiate an object, the object must refer to a single user from the database. So I'll have the CRUD methods on the user, for that specific user. But if I need a function to run a SELECT * FROM Users, should I create a function within the User class? Or a function in a helper file? Or in the controller? Where should it go, in order to respect the MVC patte? I mean, it makes no sense to instantiate a User object just to run a function to display the Users table. I'm not sure if this will raise "primarily opinion based" flags. I just don't know where those functions should go. If you guys consider th...

ادامه مطلب

SQL query for lots and bids: finding if user has highest bid

Vote count: 0 I'm building a Laravel auction application. I have a table for lots and a table for bids. Lots table: mysql> select id, lot_name, created_at, updated_at from lots; +----+----------+---------------------+---------------------+ | id | lot_name | created_at | updated_at | +----+----------+---------------------+---------------------+ | 1 | Lot 1 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 2 | Lot 2 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 3 | Lot 3 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 4 | Lot 4 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 5 | Lot 5 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 6 | Lot 6 | 2016-06-09 14:23:58 | 2016-06-09 14:23:58 | | 7 | ...

ادامه مطلب

Umbraco logged in user id

Vote count: 0 I'd like to show the user id of the currently logged in user : I can get their name // logged in? var wrapper = new HttpContextWrapper(HttpContext.Current); var ticket = wrapper.GetUmbracoAuthTicket(); isLoggedIn = 0; sessionId = ""; if (ticket!=null){ if(ticket.GetRemainingAuthSeconds() > 0){ isLoggedIn = 1; } loggedInUseame = ticket.Name.ToString(); sessionId = wrapper.Session.SessionID.ToString(); }else{ loggedInUseame = ""; } but I'd also like to get their user id so I can store extra user into in a separate database and look it up on the page. I did try @Umbraco.GetCurrentUmbracoUser().Id but I think that's from an older version of Umbraco as it crashed Umbraco 7.4 asked 1...

ادامه مطلب

Set a session variable for a logged in user

Vote count: 0 I am creating a log in for a patient so they can access information regarding prescriptions etc for a project - (isnt going live) So I have my patients already created with useame and password and they are linked to their medication through a link table. The log in works and acknowledges that a correct user from the database has logged in - however I want them to be able to access their own details once they are logged in Imports System.Data.SqlClient Imports System.Data Partial Class Pages_Login Inherits System.Web.UI.Page Protected Sub btnlogin_Click(sender As Object, e As EventArgs) Handles btnlogin.Click Dim patientNo As String Dim password As String Dim bAuthethicated As B...

ادامه مطلب

Preventing user from opening multiple tabs for the application

Vote count: 0 In my application, it should not allow the user to open the application in multiple tabs for same browser. I need to implement this for some security purpose. How can i implement this? asked 1 min agoaruna a Let's block ads! بخوانید...

ادامه مطلب