Drupal search yielded no results for anonymous user [closed] - drupal

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am using Drupal 7.50 Search returns no results for user either he is login or not(Except admin user).
Only admin user can Fetch the search result , but not the other user.
(1) successfully returns results for Administrator account.
(2) returns zero results ("Your search yielded no results") for authenticated regular user.
(3) returns zero results ("Your search yielded no results") for anonymous/un-authenticated visitor.
Use search selected the anonymous user and all users in admin user permissions area
Please Help me!!!![Search issue in drupal 7.50 version][1]

What content are you querying? If there are some results for Administrator account only, probably you have a permission issue. Please see here more information.
PROTIP: If you are using some user fields, there is a permission called "View user information" which is by default only ticked for Admin users.

Related

Verify phone Number before Registration [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am developing a project in asp .Net framework where client is asking for mobile number verification before registration. If the mobile is verified then user can register or else can not.
so linking that to the identity user table and async with it keeping the verified mobile, could not relate things to one another codding-Ly. how to do it?
Thanx for the suggestion Tavershima , I thought if some async will verify and wait until verification and registration is done then update all at once , but it seems not possible as u said so am not sure , and some developers marking this question as down I don't know what is the problem with this , that is disappointing
Trying to verify a phone number before registration is a kind of trying to verify emails before registration. If you have ever made an authentication system before or used Asp.Net Identity you will see that it has an option for verifying email before login.
....AddIdentity<IdentityUser, IdentityRole>(options =>
{
options.SignIn.RequireConfirmedAccount = true;
});
. This property makes sure that a user verifies his email before he can login. In your case,the reverse is the case. You can then write additional logic to for your app to generate a confirmation code and send to the phone number to then be entered back to finish the registration. This will prevent the user from entering a false phone number. In that accord, you have to register with an sms provider which will bill you based on your usage or subscription based.

Asp.net MVC 4 application Server not terminates session if email in database is empty and all users redirecting to that user page with no email [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In my Website I have signup page where I have option to signup with facebook I'm storing the data from facebook(email, firstname lastname, pictureurl and facebook id) on my database but sometimes there are users that signed with facebook that have no email or its closed by facebook in that cases their session are not stopping so all my users can't logout they redirecting to this person page what to do in this case
How about making the email field nullable in your database?
That way it will just set it to Null if it doesn't exist.
Update
Changing slightly due to your comments.
Could it be that when it reads the data it is expecting it not to be null?
Do a quick check when reading it in so it becomes like this:
email = email ?? string.Empty;

where to save user roles and permissions for whole website access? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i am working on user roles and permissions in my website. i want to ask when i fetch user roles and permission which is the best place to store user roles and permissions sessions or Cookies. in my website there are number of users approximately 3000 to 5000. please guide me thank you.
User roleas are basically stored in the database. The most common examples of schema:
User (UserID, Login, RoleID) -> Role (RoleID, RoleName) - one role for user
User (UserID, Login) -> UserRole (UserID, RoleID) <- Role (RoleID, Name) - many roles for user
When user is logged in, you can store roles information in session or request them from the database where it is necessary
Persistence store for Users Information like roles etc should be Database (either SQL or NoSQL, anything would work). But to give seamless experience by not prompting login page for every page request, You should use Session object.
Then comes cookie, so not page is rendered on the client browser, then how would you keep track of user in between these requests, for that use Cookie. So Cookie + Session + Database would give right experience. You can go for CookieLess session in which Session identifier will be passed in URL from client side to server, which sometime no preferable for having user friendly URLs.
so things to keep in mind while using Session is to think of WebFarm scenario, in those cases you need to use Sticky Session or Sessions which are maintained in central store like again databases. No sensitive information needs to be included in the cookie for security reasons, if sensitive information is included them proper encryption needs to be done.

I want to get all login user list at welcome user page so how would i do that? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to get all login user list at welcome user page .show each user can see the login user list.For that I have created a session ["username"] in login page and after that i want to use that sesion in session start method of asax and i want to retrieve all the login users and store it into application scope and i also want to remove and insert users on login and logout page.so i am not getting a way how would i do that .because i am new to the concept called global asax file
thanks
One relatively simple way of doing this would be to maintain a list of "logged in" users in the Application object, together with the time they were last seen. Everytime you inspect the list, you remove any entries that are, say, twenty minutes old...
That's assuming you are running on a single webserver... If you are running on a web farm, I would have thought you would need to consider recording information as to who is logged in in some central source that is accessible to all instances - a database being the obvious choice...

Accepting Email Addresses in ASP.NET [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an .aspx page with static content and now want to a simple subscription system. I want to do the following on my page
Add a Submit button and a TextBox which accepts Email address (validation enabled). On clicking Submit, a message is sent with a link to the email address to Confirm subscription.
Once the user clicks on the link, his/her email gets registered in the database.
That's it. I am from php background and have been reading the Membership system, but have no clues what to do.
Can anyone help? Thank you!
You need to use the profile system to database associated info with username/password. Then you will send the email with a salted version of the hash. On receipt, you will perform the compare and confirmation.

Resources