I'm trying out the guide here: https://docs.abp.io/en/abp/latest/Getting-Started-Angular-Template
The DB was created successfully in the migration as per the guide however the ABPUsers table has no records. I've used the previous framework AspNetZero and it created 1 or two user records (admin being one of them). Any idea why there are no users?
I skipped a part in the above link. I needed to set .DbMigrator as default project and then run it once.
Related
I have existing Laravel website up and running at https://iqtestsite.com/ . I want to install a blog section for this website using wordpress. When i try one click installation, it shows an error that database already exist.
My Domain can only have one database, i currently have important data on the server. I can't lose any part of the data.
How should i proceed here.
Thanks for reading.
This question is off-topic still I'll try to answer your question.
put the Wordpress Blog in the 'public' folder of your Laravel app.
i.e. .../laravel_app/public/wordpress_blog
or simply: laravel_app/public/blog
you can access the blog at https://www.your-site.com/blog
you can access the admin at https://www.your-site.com/blog/wp_admin
no need to worry about the routes in laravel, it will work just fine.
You can use the same database for both, just use a prefix for the WordPress tables e.g. 'wp_table_name'. you can set a prefix during WordPress installation. So you have a single database for both Laravel & Wordpress tables.
In WordPress table prefix write wp2_
rest all you can put as same as before...
I guess it will work...
the restriction is always on the database, not tables... so add tables same as woocoomerce / wordfence and other olugin insert own tables in your database... so you can incert your tables in old database
I have solution that has multiple databases in it. I would like to add logins/users/permissions to the project. I have the DB project that references DB projects that are created for the databases that are on the same server but in different databases.
When I've added login and the user to the first project everything worked fine. After that I've added user to the 2nd database project (as the server is the same and I do not need to create login again). Then the build complains that there is o login for the user. If I add login to the 2nd project then it complains that the object exists already ...
I am not sure what is the right solution for my problem, but I would like to have something like:
Project "DbA" has both login and user in the project;
Project "DbB" has user in the project that uses login from the project "DbA".
Any other suggestions are welcome.
EDITED:
As a workaround I've created new project where I've added this login and the added this project as a reference to all needed DBs, but I do not really like this solution.
I took the login/user info out of the solutions, mostly because we used different ones depending on the environments. We then added/tweaked them with post-deploy scripts. This is based off of Jamie Thomson's work, but may be helpful for you: http://schottsql.blogspot.com/2013/05/ssdt-setting-different-permissions-per.html
Alternatively, you could just add the login information to each project, but that could also get troublesome to maintain after a while. SSDT should be smart enough to not mess with the login if it already exists.
I'm building a Laravel website and I'm using the database driver to manage sessions. I created the sessions table in database and migrated with php artisan. Everything works as expected.
What I really want to do now is to check the role of the users that are online but I don't know how to get this with the fields of the sessions table in the database.
I don't really understand how the sessions table work, because I see that it registers a new row when I access to the login page, but it doesn't change when the user has logged in and when the user has logged out.
All I wanted is to check the role of the users active in the app....
Someone can help me with how to get to this?
Thank you!
I suggest you a very simple way. Just in your users table add a field called "is_online" that is 0 by default. When the user logs in , just change it to 1 and when he logs out change it back to 0. So DB::table('users')->where('is_online' , 1)->all() returns the online users.
I'm using Django with sqlite to make a web app and ran into a little issue.
I created a table under models file called deletedOrder, gave it variables etc., and then ran manage.py syncdb. This created the table in my database and I was able to add data to the database table and read the data back out, however this added table is not showing up on the Django admin interface.
Is there something else that I have to do to get this to be in the admin page?
You need to register your models to make them show up in the admin as documented here.
I'm building four websites. They all should have the same login-datas (user can registrate on website 1 and also can use website 2 and 3 by using the same Login-Name).
My idea was to use the MS SQL Membershipprovider (good idea?).
Now I don't know where to place the SQL-Mebershipprovider (in an extra databse? or together with the websites? -> sound like getting chaos^^)
A other idea I've read was to create a webservice to the authentification?
But I think I'm getting problems with the data consitency, because I think there is no way to point from one database to an other (linking for example the usertable in database one to the texttable in databse 2).
I want to use MVC3 and a MS SQL-database.
Any experiences or ideas?
Thanks a lot!
You can use a separate membership database to do this and just point the providers of each site at this database.
If you wanted to use the role provider you would have to have the same roles in all four websites which may not be what you want. You could use a central database to just handle authentication and then create a local user record in each website that links back to your central user database (you will have to do this linking manually i.e. no relationship). This will then let you role your own role provider for each site.