Skip to content

Instantly share code, notes, and snippets.

@paulohrpinheiro
Created August 22, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulohrpinheiro/83798b99f2a1d1d6516a to your computer and use it in GitHub Desktop.
Save paulohrpinheiro/83798b99f2a1d1d6516a to your computer and use it in GitHub Desktop.
Programa final usando o package.
#!/usr/bin/env perl
use strict;
use warnings;
use JSON;
use Util::Password;
my $password = Util::Password::Encrypt('{#MinhaSenhaSuuuuperSegura#}');
my $root_user = {
email => 'app@chail.com.br',
name => 'Chail Root Admin',
password => $password,
role => 'admin',
active => JSON::true,
};
print to_json($root_user, {pretty => 1} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment