passwordless sudo for ubuntu user
Need to add user rules into /etc/sudoers.d # User rules for user = toihid {toihid} ALL=NOPASSWD: ALL
Need to add user rules into /etc/sudoers.d # User rules for user = toihid {toihid} ALL=NOPASSWD: ALL
create ssh key by putty https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/create-with-putty/#working-with-putty-s-public-key-format Add the ssh key to doplet. https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/to-existing-droplet/ Connect by putty https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/putty/ Connect by filezila , have to load key file.If shows "PuTTY Server Refused…
We need to modify the entity as following /** * @ORM\HasLifecycleCallbacks */ class Distribution ----------------------------------- /** * Gets triggered only on insert * @ORM\PrePersist */ public function onPrePersist() { $this->created_at…
Adding access control in config/packages/security.yml access_control: - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/dashboard, roles: IS_AUTHENTICATED_FULLY}
https://rojas.io/symfony-4-login-registration-system/
$repository = $this->getDoctrine()->getRepository(Product::class); // look for a single Product by its primary key (usually "id") $product = $repository->find($id); // look for a single Product by name $product = $repository->findOneBy(['name' =>…