I am new to this site and to rubies! I have a general authlogic installation and require a password to be automatically generated for user registration if the user has not set a password. What is the best way to do this?
Decision:
#app/models/User.rb class User < ActiveRecord::Base #... before_validation_on_create { |record| record.randomize_password unless record.password } #... end
Source: https://habr.com/ru/post/1739271/More articles:How to secure Java web services with login and session - javaстранная проблема с WriteBeginTag - htmlC # - using a copy of variables stored in a session instead of a link - c #Can someone point me to any good MVP articles / tutorials? - c #WCF, Silverlight: is request / response possible through PollingDuplexHttpBinding? - silverlightPut query results in array and then fix? - arraysASP.NET C # Email Bounce Detection - EmailWhat is the point of doing asynchronous IO if the thread is blocked anyway (see Example) - c #Printing Postscript from vim - vimRead endpoints in XML using XSL - xmlAll Articles