Proper generation of temporary passwords

Requirement#

Temporary passwords should be automatically and randomly generated.

References#