Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

login-control

Restrict SQL Server Login access to only one database

June 11, 2023 by Tarik

I think this is what we like to do very much. –Step 1: (create a new user) create LOGIN hello WITH PASSWORD=’foo’, CHECK_POLICY = OFF; — Step 2:(deny view to any database) USE master; GO DENY VIEW ANY DATABASE TO hello; — step 3 (then authorized the user for that specific database , you have … Read more

Categories sql-server-2008 Tags login-control, sql-server-2008 Leave a comment

Rails Devise: Set password reset token and redirect user

June 7, 2023 by Tarik

A simple way to have just one step for users to confirm email address and set initial password using the link you proposed… Send one email your app generates, including a reset_password_token, and consider user’s possession of that token confirmation of the validity of that email address. In system account generation code, assuming User model … Read more

Categories ruby-on-rails Tags devise, login-control, ruby-on-rails Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa