mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
SSH Key Comment: Add Operating System and current Date
It's useful info
This commit is contained in:
@ -298,7 +298,12 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
}
|
||||
|
||||
void _generateSshKey(BuildContext context) {
|
||||
generateSSHKeys(comment: "GitJournal").then((String publicKey) {
|
||||
var comment = "GitJournal " +
|
||||
Platform.operatingSystem +
|
||||
" " +
|
||||
DateTime.now().toIso8601String().substring(0, 10); // only the date
|
||||
|
||||
generateSSHKeys(comment: comment).then((String publicKey) {
|
||||
setState(() {
|
||||
this.publicKey = publicKey;
|
||||
_copyKeyToClipboard(context);
|
||||
|
Reference in New Issue
Block a user